BIS fnc position: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3>" to "") |
Lou Montana (talk | contribs) m (Text replacement - "{{Feature|Informative|" to "{{Feature|informative|") |
||
(22 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=function | ||
| tkoh | |game1= tkoh | ||
|version1= 1.00 | |||
| | |game2= arma3 | ||
|version2= 0.50 | |||
|gr1 = Positions | |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 | |descr= Returns [[Position#PositionAGL|PositionAGL]], unless passed argument is [[Array]], then the same array is returned. When position is [[Object]] and alternative position is stored in {{hl|"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. | ||
| argument call [[BIS_fnc_position]] | |s1= argument call [[BIS_fnc_position]] | ||
|p1= argument - could be one of: | |p1= argument - could be one of: | ||
* [[Array]] - Position in format {{hl|[x, y]}} or {{hl|[x, y ,z]}} | |||
* [[Array]] - | * [[Object]] - Object | ||
* [[Object]] - | * [[Group]] - Group, group leader position is used | ||
* [[Group]] - | * [[Location]] - Location | ||
* [[Location]] - | * [[String]] - Marker or variable name containing object | ||
* [[String]] - | {{Feature|informative|To get the position of an [[Eden Entity]] use <sqf inline>_entity get3DENAttribute "Position" select 0;</sqf>.}} | ||
</ | |||
| [[Array]] - position in format [x,y] or [x,y,z] | |r1= [[Array]] - position in format {{hl|[x, y]}} or {{hl|[x, y ,z]}} | ||
|x1= < | |x1= <sqf>private _pos = player call BIS_fnc_position;</sqf> | ||
|seealso= [[Position]] | |||
}} | }} | ||
Latest revision as of 00:24, 2 February 2024
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