{"name":"BIS_fnc_position","operator":null,"title":"BIS fnc position","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_position","revid":352042,"updated":"2024-02-01T23:24:29Z","groups":["Positions"],"status":"ok","replaced_by":[],"games":[{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"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.","syntaxes":[{"syntax":"argument call BIS_fnc_position","since":null,"effect":null,"exec":null,"params":[{"name":"argument","type":null,"optional":false,"default":null,"description":"could be one of:\n- Array - Position in format `[x, y]` or `[x, y ,z]`\n- Object - Object\n- Group - Group, group leader position is used\n- Location - Location\n- String - Marker or variable name containing object\n\n> [!NOTE]\n> To get the position of an Eden Entity use `_entity get3DENAttribute \"Position\" select 0;`.","types":[],"since":null,"text":"argument - could be one of:\n- Array - Position in format `[x, y]` or `[x, y ,z]`\n- Object - Object\n- Group - Group, group leader position is used\n- Location - Location\n- String - Marker or variable name containing object\n\n> [!NOTE]\n> To get the position of an Eden Entity use `_entity get3DENAttribute \"Position\" select 0;`."}],"returns":{"type":"Array","types":["Array"],"description":"position in format `[x, y]` or `[x, y ,z]`","text":"Array - position in format `[x, y]` or `[x, y ,z]`"}}],"examples":[{"text":"```sqf\nprivate _pos = player call BIS_fnc_position;\n```","code":["private _pos = player call BIS_fnc_position;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["Position"],"notes":[],"categories":["Arma 3: Functions","Function Group: Positions","Functions","Introduced with Take On Helicopters version 1.00","Take On Helicopters: Functions","Take On Helicopters: New Functions"],"docblock":null,"filled_from_docblock":[]}