createVehicle array: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (formatting desc/syntax, fixed formatting note)
(Redirected page to createVehicle)
 
(7 intermediate revisions by 2 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: <tt>"NONE"</tt>, <tt>"FLY"</tt> and <tt>"FORM"</tt>. <tt>"CAN_COLLIDE"</tt> creates the vehicle exactly where asked, not checking if others objects can cross its 3D model. |= Description
____________________________________________________________________________________________
 
| '''createVehicle''' [type, position, markers, placement, special] |= Syntax
 
|p1= [type, position, markers, placement, special]: [[Array]] |= Parameter 1
 
|p2= type: [[String]] |= Parameter 2
 
|p3= position: [[Position]] |= Parameter 3
 
|p4= markers: [[Array]] |= Parameter 4
 
|p5= placement: [[Number]] |= Parameter 5
 
|p6= special: [[String]] |= Parameter 6
 
| [[Object]] |= Return value
____________________________________________________________________________________________
 
|x1= <code>_veh = [[createVehicle]] ["ah1w", [[position]] [[player]], [], 0, "FLY"]  </code> |= Example 1
 
|x2 = <code>_veh = [[createVehicle]] ["2S6M_Tunguska", [[getMarkerPos]] "marker1",["marker2","marker3"], 0, "NONE"] </code> |= Example 2
____________________________________________________________________________________________
 
| [[createVehicle]], [[createVehicleCrew]], [[createVehicleLocal]], [[createUnit]], [[createUnit array]], [[deleteVehicle]], [[createGroup]], [[createCenter]] |= See also
 
}}
 
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<dd class="notedate">Posted on 25 Jun, 2014 - 15:50
<dt class="note">'''[[User:ffur2007slx2_5|ffur2007slx2_5]]'''<dd class="note">
(ArmA3 1.22)Types that [[createVehicle]] can create or not:
{| class="wikitable sortable"
 
! types
! availability
 
|-
| unit
| Yes (unit is lifeless)
 
|-
| vehicles & objects
| Yes
 
|-
| Locations (Base, Area, Camp, City, Outpost, Town, Village)
| N/A (Only [[createVehicleLocal]]/[[createUnit]] available)
 
|-
| Misc (Curator, Lock, Unlock)
| N/A (Only [[createVehicleLocal]]/[[createUnit]] available)
 
|-
| Game Logic
| N/A (Only [[createVehicleLocal]]/[[createUnit]] available)
 
|-
| Sides (BULFOR, REDFOR, Independent)
| N/A (Only [[createVehicleLocal]]/[[createUnit]] available)
 
|-
| Modules
| N/A (Only [[createVehicleLocal]]/[[createUnit]] available)
 
|-
| Sources (#lightpoint, #particlesource etc)
| N/A (Only [[createVehicleLocal]] available)
 
|-
| Virtual Entities (Zeus)
| Yes
 
|}
<!-- Note Section END -->
</dl>
 
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|CREATEVEHICLEARRAY]]
[[Category:Scripting Commands ArmA|CREATEVEHICLEARRAY]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Object_Manipulation|CREATEVEHICLEARRAY]]
 
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on July 30, 2014 - 01:49 (UTC)</dd>
<dt class="note">[[User:AgentRevolution|AgentRevolution]]</dt>
<dd class="note">
In Arma 3, the position parameter for this command is always interpreted as '''[[PositionATL]]'''.
</dd>
</dl>
<!-- DISCONTINUE Notes -->

Latest revision as of 03:21, 27 March 2016

Redirect to: