User Tools

Site Tools


4rpl:commands:getobjposition

This is an old revision of the document!


Index

GetObjPosition

GetObjPosition(<-Unit “ObjName” <-world) ->point

Description

Returns a position vector (X,Y,Z coordinates) of a unit's object. Objects are the sub-parts that make up a unit. If world is false, then local coordinates are returned, otherwise world coordinates are returned. Note, use “” (empty string) to indicate the root level object.

Examples

GetObjPosition(self "Arm" false) ->pos
trace(<-pos.x)

Index

4rpl/commands/getobjposition.1610121708.txt.gz · Last modified: 2025/02/14 14:56 (external edit)