createUnit array: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (createUnit group moved to createUnit array: analogous createVehicle array) |
(No difference)
|
Revision as of 13:38, 13 August 2006
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