IsUnitInRegion
- Parameters
whichRegion regionThe region to check.
whichUnit unitThe unit to check for.
- comment
Checks whether a unit is contained within a region.
- note
Only checks the origin of the unit. Its collision size is not considered.
- note
Returns false if
whichRegionorwhichUnitis null.- patch
1.00
- Source
- common.j (suggest an edit or discuss on Github)
- return type
boolean- Source code
native IsUnitInRegion takes region whichRegion, unit whichUnit returns boolean