IsUnitInRegion
- Parameters
-
whichRegion region
The region to check.
whichUnit unit
The 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
whichRegion
orwhichUnit
is 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