User Tools

Site Tools


4rpl:commands:getunitcell

This is an old revision of the document!


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.1610121708.txt.gz · Last modified: 2025/02/14 14:56 (external edit)