native IsUnitInRegion takes region whichRegion, unit whichUnit returns boolean
native RegionAddRect takes region whichRegion, rect r returns nothing
call RegionAddRect(YourRegion, YourRect)
if IsUnitInRegion(YourRegion, YourUnit) then
// if the unit is in region this actions should fire
endif
Here is it:
JASS:native IsUnitInRegion takes region whichRegion, unit whichUnit returns boolean native RegionAddRect takes region whichRegion, rect r returns nothing
No, world edit cannot magically predict what regions you want to use, so you have to manually define them.