type createUnit unitInfo

Operand types

type: String
unitInfo: Array

Type of returned value

Description

Create unit of given type.
Format of unitInfo is:

[pos (Position), group (Group),init (String), skill (Number), rank (String)]

Note: init, skill and rank are optional, default values are: "", 0.5, "PRIVATE".
Note: The Group parameter MUST be an existing group or the unit won't be created.

Used In

OFP/ArmA

Example

"soldierWB" createUnit [getMarkerPos "barracks", groupAlpha]
"soldierWB" createUnit [getMarkerPos "marker_1", groupAlpha,"loon1 = this ; this addweapon {binocular}", 0.6, "corporal"]
Search OFPEC COMREF