createVehicle array
Jump to navigation
Jump to search
createVehicle [type, position, markers, placement, special]
Operand types:
[type, position, markers, placement, special]: Array
Type of returned value:
Compatibility:
Version 2.32 required.
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".
Example:
veh = createVehicle ["Cobra", position player, [], 0, "FLY"]