Index

GetUnitCell

GetUnitCell(<-UID) ->cellZ ->cellX

Description

Get the 2D map position of a unit. Two integer coordinates are returned. The X and Z positions are where on the map the unit is, rounded to the nearest whole coordinate. Typically, landed units live exactly on an integer map coordinate.

Examples

GetUnitCell(<-UID) ->posZ ->posX

Index