BIS_fnc_moveIn
- Local argument
- Arma 3 v0.50
- First in Take On Helicopters v1.00
Function · Markdown · JSON · original wiki page
Description
Moves a unit into vehicle. Compatible with assignedVehicleRole output.
Syntax
[vehicle, unit, role] call BIS_fnc_moveIn
Parameters:
vehicle: Objectunit: Object - the unit to move into vehicle - must be localrole: 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)
Returns: 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
See also
moveInDriver · moveInGunner · moveInCommander · moveInCargo · moveInTurret · moveInAny