User Tools

Site Tools


4rpl:commands:getunitposition

This is an old revision of the document!


Index

GetUnitPosition

GetUnitPosition(<-UID) ->pos

Description

Get the 3D position of a unit. A vector is returned. The X and Z positions are where on the map the unit is, and the Y coordinate is the height, or elevation, of the unit.

Note: If this call is attempted on an non-existing unit, nothing will be put on the stack.

Examples

GetUnitPosition(<-UID) ->pos

Index

4rpl/commands/getunitposition.1655655729.txt.gz · Last modified: 2022/06/19 12:22 by Karsten75