createVehicle array

From Bohemia Interactive Community

Jump to: navigation, search
Editors, please check Policy: Scripting Command Page Syntax.
Introduced in Armed Assault version 1.00

Click on the images for descriptions

Introduced in

Game:
Armed Assault
Version:
1.00

Description

Description:
Creates a vehicle of the given type (type is the name of the subclass in CfgVehicles).

If the markers array contains several marker names, the position of a random one is used. Otherwise, the given position is used. The vehicle is placed inside a circle with this position as center and placement as its radius.

Special properties can be: "NONE", "FLY" and "FORM".

Syntax

Syntax:
Object= createVehicle ["ClassType", Position, markers, placement, "special"]
Parameters:
ClassType: String
Position
markers: Array
placement: Number
special: String
Return Value:
Object

Examples

Example 1:
_veh = createVehicle ["ah1w", position player, [], 0, "FLY"]

Additional Information

Multiplayer:
Behaviour unknown.
See also:
createUnit, createUnit array, createVehicle, createVehicleLocal, deleteVehicle

Notes

Notes

+ Add Note

Only post proven facts here. Use the talk page or the forums for discussions.


Bottom Section

Personal tools
Buy ArmA now!