BIS fnc position: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " *\|= * " to " ")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...)
Line 1: Line 1:
{{Function|Comments=
{{Function


| tkoh |Game name=
| tkoh


|1.00|Game version=
|1.00


|gr1 = Positions |GROUP1=
|gr1 = Positions


|Returns [[PositionAGL]], unless passed argument is [[Array]], then the same array is returned. When position is [[Object]] and alternative position is stored in <tt>"BIS_fnc_position_forced"</tt> variable on this object, the stored position is used rather than actual object position. |DESCRIPTION=
|Returns [[PositionAGL]], unless passed argument is [[Array]], then the same array is returned. When position is [[Object]] and alternative position is stored in <tt>"BIS_fnc_position_forced"</tt> variable on this object, the stored position is used rather than actual object position.


| argument call [[BIS_fnc_position]]|SYNTAX=
| argument call [[BIS_fnc_position]]


|p1= argument - could be one of:
|p1= argument - could be one of:
Line 18: Line 18:
* [[Location]] - location
* [[Location]] - location
* [[String]] - marker or variable name containing object
* [[String]] - marker or variable name containing object
</span>|PARAMETER1=
</span>


| [[Array]] - position in format [x,y] or [x,y,z]|RETURNVALUE=
| [[Array]] - position in format [x,y] or [x,y,z]


|x1= <code>_pos = [[player]] [[call]] [[BIS_fnc_position]];</code>
|x1= <code>_pos = [[player]] [[call]] [[BIS_fnc_position]];</code>


|[[Position]] |SEEALSO=
|[[Position]]


}}
}}

Revision as of 23:41, 17 January 2021

Hover & click on the images for description

Description

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.
Execution:
call
Groups:
Positions

Syntax

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
Return Value:
Array - position in format [x,y] or [x,y,z]

Examples

Example 1:
_pos = player call BIS_fnc_position;

Additional Information

See also:
Position

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Bottom Section