createVehicle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|CREATEVEHICLE]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|CREATEVEHICLE]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|CREATEVEHICLE]]
[[Category:Scripting Commands ArmA|CREATEVEHICLE]]


| ofp |= Game name


<h2 style="color:#000066">'''''type'' createVehicle ''pos'''''</h2>
|1.34|= Game version


|eff= global |= Effects in MP
____________________________________________________________________________________________


'''Operand types:'''
| Create an empty vehicle/object of given type on given position. For a full class reference see [[Vehicle
Classes]]. |= Description
____________________________________________________________________________________________


'''type:''' [[String]]
| type '''createVehicle''' position |= Syntax


'''pos:''' [[Array]]
|p1= type: [[String]] - vehicle/object class name |= Parameter 1


'''Type of returned value:'''
|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
____________________________________________________________________________________________


'''Compatibility:'''
| [[createUnit]], [[deleteVehicle]] |= See also


Added in version '''1.34'''
}}


'''Description:'''
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


Create empty vehicle of given '''type'''.<br>
<!-- Note Section END -->
'''Pos''' is in format [[Position]].<br>
</dl>
See [[CfgVehicles]] for possible '''type''' values.


<h3 style="display:none">Bottom Section</h3>


'''Example:'''
[[Category:Scripting Commands|CREATEVEHICLE]]
 
[[Category:Scripting Commands OFP 1.96|CREATEVEHICLE]]
_tank = "M1Abrams" '''createVehicle''' [[getMarkerPos]] "tankFactory"
[[Category:Scripting Commands OFP 1.46|CREATEVEHICLE]]
[[Category:Scripting Commands ArmA|CREATEVEHICLE]]

Revision as of 00:10, 2 August 2006

Hover & click on the images for description

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

Notes

Bottom Section