createUnit array: Difference between revisions
Jump to navigation
Jump to search
m (→typo fixed) |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Command|= Comments | |||
____________________________________________________________________________________________ | |||
| ofp |= Game name | |||
|1.34|= Game version | |||
____________________________________________________________________________________________ | |||
| 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. | |||
Examples: "soldierWB" createUnit [ [[getMarkerPos]] "barracks", groupAlpha] | |||
"soldierWB" createUnit [ [[getMarkerPos]] "marker_1", groupAlpha, {loon1 = this ; this [[addWeapon]] "binocular"}, 0.6, "corporal"] |= Description | |||
____________________________________________________________________________________________ | |||
''' | | type '''createUnit''' unitInfo |= Syntax | ||
|p1= type: [[String]] |= Parameter 1 | |||
|p2= unitInfo: [[Array]] |= Parameter 2 | |||
| [[Nothing]] |= Return value | |||
____________________________________________________________________________________________ | |||
| |= See also | |||
}} | |||
<h3 style="display:none">Notes</h3> | |||
<dl class="command_description"> | |||
<!-- Note Section BEGIN --> | |||
<!-- Note Section END --> | |||
</dl> | |||
<h3 style="display:none">Bottom Section</h3> | |||
[[Category:Scripting Commands|CREATEUNITGROUP]] | |||
[[Category:Scripting Commands ArmA|CREATEUNITGROUP]] | |||
Revision as of 23:09, 1 August 2006
Description
- Description:
- type createUnit unitInfo
- Groups:
- Uncategorised
Syntax
- Syntax:
- Nothing
- Parameters:
- type: String
- unitInfo: Array
- Return Value:
- Return value needed
Examples
- Examples:
- Example needed
Additional Information
- See also:
- See also needed
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