User Tools

Site Tools


4rpl:commands:getunitcell

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

4rpl/commands/getunitcell.txt · Last modified: 2025/02/14 14:57 by 127.0.0.1