From Bohemia Interactive Community
|
|
(43 intermediate revisions by 15 users not shown) |
Line 1: |
Line 1: |
| [[Category:Scripting Commands|CREATEUNITGROUP]]
| | #REDIRECT [[createUnit]] |
| [[Category:Scripting Commands ArmA|CREATEUNITGROUP]]
| |
| | |
| | |
| <h2 style="color:#000066">'''''group'' creatUnit ''[type, position, markers, placement, special]'''''</h2>
| |
| | |
| | |
| '''Operand types:'''
| |
| | |
| '''group:''' [[Group]]
| |
| | |
| '''[type, position, markers, placement, special]:''' [[Array]]
| |
| | |
| '''Type of returned value:'''
| |
| | |
| [[Object]]
| |
| | |
| '''Compatibility:'''
| |
| | |
| Version 2.32 required.
| |
| | |
| '''Description:'''
| |
| | |
| Creates a unit (person) of the given '''type''' (type is a name of a subclass of CfgVehicles) and makes it a member of the given '''group'''.
| |
| | |
| If the '''markers''' array contains several marker names, the position of a random one is used, otherwise, the given '''position''' is used.
| |
| | |
| The unit is placed inside a circle with this position as its center and '''placement''' as its radius.
| |
| | |
| '''Special''' properties can be: "NONE" and "FORM".
| |
| | |
| | |
| '''Example:'''
| |
| | |
| unit = [[group]] [[player]] '''createUnit''' ["SoldierWB", [[position]] [[player]], [], 0, "FORM"]
| |
Latest revision as of 11:39, 30 August 2016