|
|
(40 intermediate revisions by 13 users not shown) |
Line 1: |
Line 1: |
| {{Command|= Comments
| | #REDIRECT [[createUnit]] |
| ____________________________________________________________________________________________
| |
| | |
| | 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. |= Description
| |
| ____________________________________________________________________________________________
| |
| |
| |
| | type '''createUnit''' unitInfo |= Syntax
| |
| | |
| |p1= type: [[String]] |= Parameter 1
| |
| | |
| |p2= unitInfo: [[Array]] |= Parameter 2
| |
| | |
| | [[Nothing]] |= Return value
| |
| ____________________________________________________________________________________________
| |
| |x1 = <code> "soldierWB" createUnit [ [[getMarkerPos]] "barracks", groupAlpha]
| |
| "soldierWB" createUnit [ [[getMarkerPos]] "marker_1", groupAlpha, {loon1 <nowiki>=</nowiki> this ; this [[addWeapon]] "binocular"}, 0.6, "corporal"] </code>
| |
| | |= 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]]
| |