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

Operand types

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

Type of returned value

Description

Creates an (independent) agent (person) of the given type (type is a name of a subclass of CfgVehicles).
If the markers array contains several marker names, the position of a random one is used.
Otherwise, the given position is used.
The unit is placed inside a circle with this position as its center and placement as its radius.
Special properties can be: "NONE" and "FORM".

Used In

ArmA

Example

agent = createAgent ["SoldierWB", position player, [], 0, "FORM"]
Search OFPEC COMREF