<- CRPL reference <- Unit Commands

GetCellOccupiedCount

Arguments Result Notation
X,YCount of things occupying cellx1 y1 - i1

Description

Returns the count of things occupying the map cell. Whenever a unit lands it will increase the count by 1 for every cell it occupies (which is a 3×3 area for most units). Normally units do not stack, but in the event they are stacked the occupied count may be greater than 1.

   GetCellOccupiedCount(10 10) ->unitCount