Difference between revisions of "createVehicle"
Jump to navigation
Jump to search
m |
m |
||
Line 1: | Line 1: | ||
− | + | {{Command|= Comments | |
− | + | ____________________________________________________________________________________________ | |
− | |||
− | |||
+ | | ofp |= Game name | ||
− | + | |1.34|= Game version | |
+ | |eff= global |= Effects in MP | ||
+ | ____________________________________________________________________________________________ | ||
− | + | | Create an empty vehicle/object of given type on given position. For a full class reference see [[Vehicle | |
+ | Classes]]. |= Description | ||
+ | ____________________________________________________________________________________________ | ||
− | ''' | + | | type '''createVehicle''' position |= Syntax |
− | + | |p1= type: [[String]] - vehicle/object class name |= Parameter 1 | |
− | + | |p2= position: [[Position]] - position to create the vehicle at |= Parameter 2 | |
− | [[Object]] | + | | [[Object]] - |
+ | The created vehicle/object is returned. |= Return value | ||
+ | ____________________________________________________________________________________________ | ||
+ | |||
+ | |x1= <pre>_jeep = "Jeep" createVehicle (position player)</pre> |= Example 1 | ||
+ | ____________________________________________________________________________________________ | ||
− | + | | [[createUnit]], [[deleteVehicle]] |= See also | |
− | + | }} | |
− | + | <h3 style="display:none">Notes</h3> | |
+ | <dl class="command_description"> | ||
+ | <!-- Note Section BEGIN --> | ||
− | + | <!-- Note Section END --> | |
− | + | </dl> | |
− | |||
+ | <h3 style="display:none">Bottom Section</h3> | ||
− | + | [[Category:Scripting Commands|CREATEVEHICLE]] | |
− | + | [[Category:Scripting Commands OFP 1.96|CREATEVEHICLE]] | |
− | + | [[Category:Scripting Commands OFP 1.46|CREATEVEHICLE]] | |
+ | [[Category:Scripting Commands ArmA|CREATEVEHICLE]] |
Revision as of 00:10, 2 August 2006
Description
- Description:
- Create an empty vehicle/object of given type on given position. For a full class reference see [[Vehicle Classes]].
- Groups:
- Uncategorised
Syntax
- Syntax:
- type createVehicle position
- Parameters:
- type: String - vehicle/object class name
- position: Position - position to create the vehicle at
- Return Value:
- Object - The created vehicle/object is returned.
Examples
- Example 1:
_jeep = "Jeep" createVehicle (position player)
Additional Information
- See also:
- createUnitdeleteVehicle
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