|
|
(29 intermediate revisions by 13 users not shown) |
Line 1: |
Line 1: |
| {{Command|= Comments
| | #REDIRECT [[createVehicle]] |
| ____________________________________________________________________________________________
| |
| | |
| | arma |= Game name
| |
| | |
| |1.00|= Game version
| |
| ____________________________________________________________________________________________
| |
| | |
| | Creates a vehicle of the given type (type is the name of the subclass in [[CfgVehicles]]).
| |
| | |
| If the markers array contains several marker names, the position of a random one is used. Otherwise, the given position is used. The vehicle is placed inside a circle with this position as center and placement as its radius.
| |
| | |
| Special properties can be: "NONE", "FLY" and "FORM". |= Description
| |
| ____________________________________________________________________________________________
| |
| | |
| | '''createVehicle''' [type, position, markers, placement, special] |= Syntax
| |
| | |
| |p1= type: [[String]] |= Parameter 1
| |
| | |
| |p2= pos: [[Array]] |= Parameter 2
| |
| | |
| |p3= markers: [[Array]] |= Parameter 3
| |
| | |
| |p4= placement: [[Number]] |= Parameter 4
| |
| | |
| |p5= special: [[String]] |= Parameter 5
| |
| | |
| | [[Object]] |= Return value
| |
| ____________________________________________________________________________________________
| |
|
| |
| |x1= <code>veh <nowiki>=</nowiki> createVehicle ["ah1w", [[position]] [[player]], [], 0, "FLY"] </code> |= Example 1
| |
| ____________________________________________________________________________________________
| |
| | |
| | [[createUnit]], [[createUnit array]], [[createVehicle]], [[createVehicleLocal]], [[deleteVehicle]] |= See also
| |
| | |
| }}
| |
| | |
| | |
| <h3 style="display:none">Bottom Section</h3>
| |
| | |
| [[Category:Scripting Commands|CREATEVEHICLEARRAY]]
| |
| [[Category:Scripting Commands ArmA|CREATEVEHICLEARRAY]]
| |