BIS fnc helicopterSeat: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl>" to "") |
Lou Montana (talk | contribs) 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 | {{Function | ||
| tkoh | | tkoh | ||
|1.00 | |1.00 | ||
|gr1 = Helicopters | |gr1 = Helicopters | ||
|Check if unit sits on right or left seat. | |Check if unit sits on right or left seat. | ||
| unit call [[BIS_fnc_helicopterSeat]] | | unit call [[BIS_fnc_helicopterSeat]] | ||
|p1= unit: [[Object]] - unit which should be checked. | |p1= unit: [[Object]] - unit which should be checked. | ||
| [[Number]]: | | [[Number]]: | ||
* -1: Not in a vehicle | * -1: Not in a vehicle | ||
* 0: left seat | * 0: left seat | ||
* 1: right seat | * 1: right seat | ||
|x1= <code>[[player]] [[call]] [[BIS_fnc_helicopterSeat]];</code> | |x1= <code>[[player]] [[call]] [[BIS_fnc_helicopterSeat]];</code> | ||
| [[moveInDriver]], [[crew]], [[BIS_fnc_helicopterSeatMove]] | | [[moveInDriver]], [[crew]], [[BIS_fnc_helicopterSeatMove]] | ||
}} | }} | ||
Revision as of 23:08, 17 January 2021
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
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