BIS fnc position: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
Lou Montana (talk | contribs) m (Text replacement - "(\|[pr][0-9]+ *= *[^-]+) *- *C([a-eg-z])" to "$1 - c$2") |
||
Line 13: | Line 13: | ||
|s1= argument call [[BIS_fnc_position]] | |s1= argument call [[BIS_fnc_position]] | ||
|p1= argument - | |p1= argument - could be one of: | ||
* [[Array]] - Position in format {{hl|[x, y]}} or {{hl|[x, y ,z]}} | * [[Array]] - Position in format {{hl|[x, y]}} or {{hl|[x, y ,z]}} | ||
* [[Object]] - Object | * [[Object]] - Object |
Revision as of 14:00, 8 November 2023
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:
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