Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.61

Description

Description:

Moves a unit in a vehicle.

Note: The Xaitment plugin must be enabled to use this function, and at this stage, units / vehicles can only board the LCM-8.

Syntax

Syntax:[object, position, vehicle] call fn_vbs_loadVehicle
Parameters:
  • object: Object - The vehicle or unit to be moved.
  • position: Position-2 - The position to move to (in model space coordinates).
  • vehicle: Object - The object to board,
Return Value:Nothing

Warning

When using functions in VBS versions older than 3.4, certain limitations and requirements should be kept in mind - the main ones being that capitalization of the function name is crucial, and that #include "\vbs2\headers\function_library.hpp" has to be included in every script that utilizes it. More Category VBS Scripting Functions.

Examples

Examples:
[p1, [0,0,0], lcm] call fn_vbs_loadvehicle
// Moves unit p1 into lcm at the position [0,0,0]

Additional Information

See also: 
Multiplayer: 
Problems: 

Notes