CBA_fnc_getPos

Description

A function used to get the position of an entity.

Parameters

_entity<MARKER, OBJECT, LOCATION, GROUP, TASK or POSITION>

Example

_position = (group player) call CBA_fnc_getPos

Returns

Position (AGLS)[X,Y,Z] Z will always be 0 for MARKER, LOCATION and TASK.  If entity is GROUP, the position of the group leader will be reported.  For OBJECT and GROUP, the z will be relative to the first RoadWay LOD below the object (AGLS format).  If POSITION was provided, the position array will be copied.  Defaults to [0,0,0] if the entity is null or undefined.

Author

Rommel

Close