- Joined
- Sep 26, 2009
- Messages
- 9,534
I can't find this one on google.
Region is used to trigger events, rects are used to store coordinates, but in order for the region to trigger the event, the region must be defined with a rect.
So I used
Does removing the rect undo the
Also, can I use RegionAddRect twice to add two different rects and both rects trigger a unit entry event using the same region?
Region is used to trigger events, rects are used to store coordinates, but in order for the region to trigger the event, the region must be defined with a rect.
So I used
RegionAddRect
... but can I use RemoveRect
or SetRect
to something else so that I don't waste a rect on each region? Like if I do...
JASS:
function setthis takes nothing returns nothing
local rect r = Rect(-100, 345, -1, 800) // edit: haha, region r :P
call RegionAddRect(Super, r )
call RemoveRect(r)
set r = null
endfunction
RegionAddRect
command?Also, can I use RegionAddRect twice to add two different rects and both rects trigger a unit entry event using the same region?