~~NOTOC~~
<=[[4rpl:start| Index]]
* [[4rpl:commands:GetUnitCell|Get]]
* [[4rpl:commands:SetUnitCell|Set]]
====== 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
<=[[4rpl:start| Index]]