createVehicle array: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 14: | Line 14: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[Object]]<nowiki>=</nowiki> '''createVehicle''' [ | | [[Object]]<nowiki>=</nowiki> '''createVehicle''' [type, position, markers, placement, special] |= Syntax | ||
|p1= | |p1= type: [[String]] |= Parameter 1 | ||
|p2= [[ | |p2= [type, position, markers, placement, special]: [[Array]] |= Parameter 2 | ||
|p3= | |p3= position: [[Position]] |= Parameter 3 | ||
|p4= | |p4= markers: [[Array]] |= Parameter 4 | ||
|p5= special: [[String]] |= Parameter | |p5= placement: [[Number]] |= Parameter 5 | ||
|p6= special: [[String]] |= Parameter 6 | |||
| [[Object]] |= Return value | | [[Object]] |= Return value |
Revision as of 18:34, 21 January 2009
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".
- Groups:
- Uncategorised
Syntax
- Syntax:
- Object= createVehicle [type, position, markers, placement, special]
- Parameters:
- type: String
- [type, position, markers, placement, special]: Array
- position: Position
- markers: Array
- placement: Number
- special: String
- Return Value:
- Object
Examples
Additional Information
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