createVehicle array: Difference between revisions
Jump to navigation
Jump to search
m (Text replace - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}} {{uc:{{PAGENAME}}}}") |
m (Text replace - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}} {{uc:{{PAGENAME}}}}") |
||
Line 46: | Line 46: | ||
[[Category:Scripting Commands ArmA|CREATEVEHICLEARRAY]] | [[Category:Scripting Commands ArmA|CREATEVEHICLEARRAY]] | ||
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | |||
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Command_Group:_Object_Manipulation|CREATEVEHICLEARRAY]] | [[Category:Command_Group:_Object_Manipulation|CREATEVEHICLEARRAY]] |
Revision as of 11:47, 25 March 2013
Description
- Description:
- 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". "CAN_COLLIDE" creates the vehicle exactly where asked, not checking if others objects can cross its 3D model.
- Groups:
- Uncategorised
Syntax
- Syntax:
- Object = createVehicle [type, position, markers, placement, special]
- Parameters:
- [type, position, markers, placement, special]: Array
- type: String
- position: Position
- markers: Array
- placement: Number
- special: String
- Return Value:
- Object
Examples
- Example 1:
_veh = createVehicle ["ah1w", position player, [], 0, "FLY"]
- Example 2:
_veh = createVehicle ["2S6M_Tunguska",getMarkerPos "marker1",["marker2","marker3"], 0, "FLY"]
Additional Information
- See also:
- createVehiclecreateVehicleLocalcreateUnitcreateUnit arraydeleteVehiclecreateGroupcreateCenter
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