BIS fnc helicopterSeat: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl>" to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...)
Line 1: Line 1:
{{Function|Comments=
{{Function


| tkoh |Game name=
| tkoh


|1.00|Game version=
|1.00


|gr1 = Helicopters |GROUP1=
|gr1 = Helicopters


|Check if unit sits on right or left seat.|DESCRIPTION=
|Check if unit sits on right or left seat.


| unit call [[BIS_fnc_helicopterSeat]] |SYNTAX=
| unit call [[BIS_fnc_helicopterSeat]]


|p1= unit: [[Object]] - unit which should be checked. |PARAMETER1=
|p1= unit: [[Object]] - unit which should be checked.


| [[Number]]:
| [[Number]]:
* -1: Not in a vehicle
* -1: Not in a vehicle
* &nbsp;0: left seat
* &nbsp;0: left seat
* &nbsp;1: right seat |RETURNVALUE=
* &nbsp;1: right seat


|x1= <code>[[player]] [[call]] [[BIS_fnc_helicopterSeat]];</code> |EXAMPLE1=
|x1= <code>[[player]] [[call]] [[BIS_fnc_helicopterSeat]];</code>


| [[moveInDriver]], [[crew]], [[BIS_fnc_helicopterSeatMove]] |SEEALSO=
| [[moveInDriver]], [[crew]], [[BIS_fnc_helicopterSeatMove]]
}}
}}



Revision as of 00:08, 18 January 2021

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:
moveInDrivercrewBIS_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


Bottom Section