BIS fnc position: Difference between revisions
Jump to navigation
Jump to search
m (see also) |
m (template:command argument fix) |
||
Line 8: | Line 8: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|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. |= | |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= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| argument call [[BIS_fnc_position]]|= | | argument call [[BIS_fnc_position]]|SYNTAX= | ||
|p1= argument - could be one of: | |p1= argument - could be one of: | ||
Line 20: | Line 20: | ||
* [[Location]] - location | * [[Location]] - location | ||
* [[String]] - marker or variable name containing object | * [[String]] - marker or variable name containing object | ||
</span>|= | </span>|PARAMETER1= | ||
| [[Array]] - position in format [x,y] or [x,y,z]|= | | [[Array]] - position in format [x,y] or [x,y,z]|RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 28: | Line 28: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|[[Position]] |= | |[[Position]] |SEEALSO= | ||
}} | }} |
Revision as of 14:32, 7 April 2019
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:
- Uncategorised
Syntax
- Syntax:
- argument call BIS_fnc_position
- Parameters:
- argument - could be one of:
- 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