BIS_fnc_position
- Arma 3 v0.50
- First in Take On Helicopters v1.00
Function · Markdown · JSON · original wiki page
Description
Returns PositionAGL, unless passed argument is Array, then the same array is returned. When position is Object and alternative position is stored in "BIS_fnc_position_forced" variable on this object, the stored position is used rather than actual object position. This function is a pretty safe way to get the position of an entity.
Syntax
argument call BIS_fnc_position
Parameters:
-
argument- could be one of:- Array - Position in format
[x, y]or[x, y ,z] - Object - Object
- Group - Group, group leader position is used
- Location - Location
- String - Marker or variable name containing object
Note
To get the position of an Eden Entity use
_entity get3DENAttribute "Position" select 0;. - Array - Position in format
Returns: Array - position in format [x, y] or [x, y ,z]
Examples
Example 1
private _pos = player call BIS_fnc_position;