BIS fnc position: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<tt>([a-zA-Z0-9\. _"\\']+)<\/tt>" to "{{hl|$1}}") |
Lou Montana (talk | contribs) m (Text replacement - "<tt>([^= ]+)<\/tt>" to "{{hl|$1}}") |
||
Line 14: | Line 14: | ||
|p1= argument - Could be one of: | |p1= argument - Could be one of: | ||
* [[Array]] - Position in format | * [[Array]] - Position in format {{hl|[x, y]}} or {{hl|[x, y ,z]}} | ||
* [[Object]] - Object | * [[Object]] - Object | ||
* [[Group]] - Group, group leader position is used | * [[Group]] - Group, group leader position is used | ||
Line 21: | Line 21: | ||
{{Feature|Informative|To get the position of an [[Eden Entity]] use {{ic|_entity [[get3DENAttribute]] "Position" [[select]] 0;}}}} | {{Feature|Informative|To get the position of an [[Eden Entity]] use {{ic|_entity [[get3DENAttribute]] "Position" [[select]] 0;}}}} | ||
|r1= [[Array]] - Position in format | |r1= [[Array]] - Position in format {{hl|[x, y]}} or {{hl|[x, y ,z]}} | ||
|x1= <code>_pos = [[player]] [[call]] [[BIS_fnc_position]];</code> | |x1= <code>_pos = [[player]] [[call]] [[BIS_fnc_position]];</code> |
Revision as of 00:16, 16 November 2021
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. This function is a pretty safe way to get the position of an entity.
- Execution:
- call
- Groups:
- Positions
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