createVehicle array: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (see also)
m (Reset ArmA ver)
Line 4: Line 4:
| arma |= Game name
| arma |= Game name


|2.32|= Game version
|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
| 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
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 20:00, 12 October 2006

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

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:
createVehicle [type, position, markers, placement, special]
Parameters:
type: String
pos: Array
markers: Array
placement: Number
special: String
Return Value:
Object

Examples

Example 1:
veh = createVehicle ["Cobra", position player, [], 0, "FLY"]

Additional Information

See also:
createUnitcreateUnit arraycreateVehiclecreateVehicleLocaldeleteVehicle

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

Notes

Bottom Section