BIS_fnc_moveIn

From Bohemia Interactive Community
Jump to navigation Jump to search
Introduced with Take On Helicopters version1.00
  Arguments of this scripting function have to be local to the client the function is executed on

Click on the images for descriptions

Introduced in

Game:
Take On Helicopters
Version:
1.00

Description

Description:
Moves a unit into vehicle. Compatible with assignedVehicleRole output.

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

Execution:
call
Multiplayer:
unit must be local
See also:
moveInDrivermoveInGunnermoveInCommandermoveInCargomoveInTurretmoveInAny

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section