createUnit array

From Bohemia Interactive Community
Revision as of 13:38, 13 August 2006 by Raedor (talk | contribs) (createUnit group moved to createUnit array: analogous createVehicle array)
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Create unit of given type. Format of unitInfo is: [pos (Position), group (Group),init (Code), 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.
Groups:
Uncategorised

Syntax

Syntax:
Syntax needed
Parameters:
type: String
unitInfo: Array
Return Value:
type createUnit unitInfo

Examples

Example 1:
"soldierWB" createUnit [ getMarkerPos "barracks", groupAlpha] "soldierWB" createUnit [ getMarkerPos "marker_1", groupAlpha,
{loon1 = this ; this addWeapon "binocular"}, 0.6, "corporal"]

Additional Information

See also:
Nothing

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section