createVehicle array (VBS2)
From Bohemia Interactive Community
| Editors, please check Policy: Scripting Command Page Syntax. |
Click on the images for descriptions
Introduced in
- Game:
- Virtual Battlespace 2
- Version:
- 1.00
Description
- Description:
- Creates a vehicle of the given type (type is the name of the subclass in CfgVehicles).
Syntax
- Syntax:
- Object= createVehicle [class,position, markers, placement,special,overlay,unknown,loading]
- Parameters:
- class: String - Class name of object to create
- position: Position
- markers: Array - If the array contains several marker names, the position of a random one is used to place the vehicle. Otherwise, the given position is used.
- placement: Number - Radius of a circle to randomly place the vehicle in.
- special: String - Can be: "NONE", "CAN_COLLIDE", "FLY" or "FORM".
- overlay: Boolean
- unknown: Boolean
- loading: Boolean -
- Return Value:
- Object
Examples
Additional Information
- Multiplayer:
- Behaviour unknown.
- See also:
- createUnit, createUnit array, createVehicle, createVehicleLocal, deleteVehicle
Notes
Notes

