createVehicleLocal: 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|CREATEVEHICLELOCAL]]
{{Command|= Comments
[[Category:Scripting Commands OFP Elite |CREATEVEHICLELOCAL]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|CREATEVEHICLELOCAL]]


| arma |= Game name


<h2 style="color:#000066">'''''type'' createVehicleLocal ''pos'''''</h2>
|2.56|= Game version
____________________________________________________________________________________________


| Creates an empty vehicle of the given type. Pos is in format [[Position]]. See [[CfgVehicles]] for possible type values. Vehicle is not transferred through network in MP games. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| type '''createVehicleLocal''' pos |= Syntax


'''type:''' [[String]]
|p1= type: [[String]] |= Parameter 1


'''pos:''' [[Array]]
|p2= pos: [[Array]] |= Parameter 2


'''Type of returned value:'''
| [[Object]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>_tank = "M1Abrams" createVehicleLocal [[getMarkerPos]] "tankFactory"</pre> |= Example 1
____________________________________________________________________________________________


[[Object]]
|  |= See also


'''Compatibility:'''
}}


Version 2.56 required.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Description:'''
<!-- Note Section END -->
</dl>


Creates an empty vehicle of the given '''type'''.
<h3 style="display:none">Bottom Section</h3>


'''Pos''' is in format [[Position]].
[[Category:Scripting Commands|CREATEVEHICLELOCAL]]
 
[[Category:Scripting Commands OFP Elite |CREATEVEHICLELOCAL]]
See [[CfgVehicles]] for possible type values.
[[Category:Scripting Commands ArmA|CREATEVEHICLELOCAL]]
 
Vehicle is not transferred through network in MP games.
 
 
'''Example:'''
 
_tank = "M1Abrams" '''createVehicleLocal''' [[getMarkerPos]] "tankFactory"

Revision as of 00:10, 2 August 2006

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

Description

Description:
Creates an empty vehicle of the given type. Pos is in format Position. See CfgVehicles for possible type values. Vehicle is not transferred through network in MP games.
Groups:
Uncategorised

Syntax

Syntax:
type createVehicleLocal pos
Parameters:
type: String
pos: Array
Return Value:
Object

Examples

Example 1:
_tank = "M1Abrams" createVehicleLocal [[getMarkerPos]] "tankFactory"

Additional Information

See also:
See also needed

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