BIS fnc moveIn: 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 = Object Manipulation | |gr1 = Object Manipulation | ||
|arg= local |= Arguments | |arg= local |= Arguments | ||
| Moves a unit into vehicle. Compatible with [[assignedVehicleRole]] output. | | Moves a unit into vehicle. Compatible with [[assignedVehicleRole]] output. | ||
| [vehicle, unit, role] call [[BIS_fnc_moveIn]] | | [vehicle, unit, role] call [[BIS_fnc_moveIn]] | ||
|p1= vehicle: [[Object]] | |p1= vehicle: [[Object]] | ||
|p2= unit: [[Object]] - the unit to move into ''vehicle'' | |p2= unit: [[Object]] - the unit to move into ''vehicle'' | ||
|p3= role: [[Array]] - wanted seat, in format [''"role"''] or [''"role"'', turretPath]. Can be one of: | |p3= role: [[Array]] - wanted seat, in format [''"role"''] or [''"role"'', turretPath]. Can be one of: | ||
Line 23: | Line 23: | ||
* "cargo" | * "cargo" | ||
* "turret" | * "turret" | ||
* "": will load ''unit'' in the first available seat (using [[moveInAny]]) | * "": will load ''unit'' in the first available seat (using [[moveInAny]]) | ||
| [[Boolean]] - [[true]] if moved in successfully | | [[Boolean]] - [[true]] if moved in successfully | ||
|x1= <code>[myCar, [[player]], "cargo"] [call]] [[BIS_fnc_moveIn]];</code> | |x1= <code>[myCar, [[player]], "cargo"] [call]] [[BIS_fnc_moveIn]];</code> | ||
|x2= <code>[myTank, [[player]], ["turret", [0]]] [call]] [[BIS_fnc_moveIn]];</code> | |x2= <code>[myTank, [[player]], ["turret", [0]]] [call]] [[BIS_fnc_moveIn]];</code> | ||
|x3= <code>[myTank, [[player]], ["turret", -1]] [call]] [[BIS_fnc_moveIn]]; {{codecomment|// will [[moveInDriver]] the player}}</code> | |x3= <code>[myTank, [[player]], ["turret", -1]] [call]] [[BIS_fnc_moveIn]]; {{codecomment|// will [[moveInDriver]] the player}}</code> | ||
|mp= ''unit'' must be '''[[local]]''' |Multiplayer= | |mp= ''unit'' must be '''[[local]]''' |Multiplayer= | ||
| [[moveInDriver]], [[moveInGunner]], [[moveInCommander]], [[moveInCargo]], [[moveInTurret]], [[moveInAny]] | | [[moveInDriver]], [[moveInGunner]], [[moveInCommander]], [[moveInCargo]], [[moveInTurret]], [[moveInAny]] | ||
}} | }} | ||
Revision as of 23:40, 17 January 2021
Description
- Description:
- Moves a unit into vehicle. Compatible with assignedVehicleRole output.
- Execution:
- call
- Multiplayer:
- unit must be local
- Groups:
- Object Manipulation
Syntax
- Syntax:
- [vehicle, unit, role] call BIS_fnc_moveIn
- Parameters:
- vehicle: Object
- unit: Object - the unit to move into vehicle
- role: Array - wanted seat, in format ["role"] or ["role", turretPath]. Can be one of:
- "driver"
- "gunner"
- "commander"
- "cargo"
- "turret"
- "": will load unit in the first available seat (using moveInAny)
- Return Value:
- Boolean - true if moved in successfully
Examples
- Example 1:
[myCar, player, "cargo"] [call]] BIS_fnc_moveIn;
- Example 2:
[myTank, player, ["turret", [0]]] [call]] BIS_fnc_moveIn;
- Example 3:
[myTank, player, ["turret", -1]] [call]] BIS_fnc_moveIn; // will moveInDriver the player
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