createVehicle array: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 18: | Line 18: | ||
|p1= ClassType: [[String]] |= Parameter 1 | |p1= ClassType: [[String]] |= Parameter 1 | ||
|p2= [[Position]] | |p2= [[Position]] |= Parameter 2 | ||
|p3= markers: [[Array]] |= Parameter 3 | |p3= markers: [[Array]] |= Parameter 3 | ||
Line 29: | Line 29: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code> | |x1= <code>_veh <nowiki>=</nowiki> createVehicle ["ah1w", [[position]] [[player]], [], 0, "FLY"] </code> |= Example 1 | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 08:33, 27 August 2007
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 ["ClassType", Position, markers, placement, "special"]
- Parameters:
- ClassType: String
- 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