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: 2021/01/24 14:54 by Sanian