function Trig_Untitled_Trigger_001_Actions takes nothing returns nothing
local integer i = 0
local real x
local real y
loop
exitwhen i = 15 // 15 = max players in warcraft (you don't really need 15)
if GetLocalPlayer() == Player(i) then
set x = GetCameraEyePositionX()
set y = GetCameraEyePositionY()
if RectContainsCoords(some rect, x, y) == true then
//put your filter stuff here
endif
endif
endloop
endfunction
//===========================================================================
function InitTrig_Untitled_Trigger_001 takes nothing returns nothing
set gg_trg_Untitled_Trigger_001 = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_Untitled_Trigger_001, 0.20 )
call TriggerAddAction( gg_trg_Untitled_Trigger_001, function Trig_Untitled_Trigger_001_Actions )
endfunction