createVehicle [type, position, markers, placement, special]

Operand types

[type, position, markers, placement, special]: Array

Type of returned value

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".
See ArmAVehicles for possible type values.

Used In

ArmA

Example

_veh = createVehicle ["Cobra", position player, [], 0, "FLY"]
Search OFPEC COMREF