BIS fnc helicopterSeat: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(page filling)
m (Text replacement - "\|seealso= ([^ ]+)(\]\]|\}\}), *(\[\[|\{\{)" to "|seealso= $1$2 $3")
 
(32 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Function|= Comments
{{RV|type=function
____________________________________________________________________________________________


|tkoh|= Game name
|game1= tkoh
|version1= 1.00


|1.00|= Game version
|game2= arma3
____________________________________________________________________________________________
|version2= 0.50


|Check if unit sits on right or left seat.|= Description
|gr1= Helicopters
____________________________________________________________________________________________


|object call '''BIS_fnc_helicopterSeat'''|= Syntax
|descr=Check if unit sits on right or left seat.


|p1= object: [[Object]] - Unit which should be checked.|= Parameter 1
|s1= unit call [[BIS_fnc_helicopterSeat]]


|[[Number]]: <br>-1 - Not in a vehicle<br>0 - left<br>1 - right|= Return value
|p1= unit: [[Object]] - unit which should be checked.
____________________________________________________________________________________________
||= See also
}}


<h3 style="display:none">Notes</h3>
|r1= [[Number]]:
<dl class="command_description">
* -1: Not in a vehicle
<!-- Note Section BEGIN -->
* &nbsp;0: left seat
* &nbsp;1: right seat


<!-- Note Section END -->
|x1= <sqf>player call BIS_fnc_helicopterSeat;</sqf>
</dl>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[moveInDriver]] [[crew]] [[BIS_fnc_helicopterSeatMove]]
[[Category:Function Group: Helicopters|{{uc:helicopterSeat}}]]
}}
[[Category:Functions|{{uc:helicopterSeat}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:helicopterSeat}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:helicopterSeat}}]]

Latest revision as of 13:53, 1 July 2022

Hover & click on the images for description

Description

Description:
Check if unit sits on right or left seat.
Execution:
call
Groups:
Helicopters

Syntax

Syntax:
unit call BIS_fnc_helicopterSeat
Parameters:
unit: Object - unit which should be checked.
Return Value:
Number:
  • -1: Not in a vehicle
  •  0: left seat
  •  1: right seat

Examples

Example 1:
player call BIS_fnc_helicopterSeat;

Additional Information

See also:
moveInDriver crew BIS_fnc_helicopterSeatMove

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