createVehicleLocal: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 34: Line 34:
'''Example:'''
'''Example:'''


_tank = "M1Abrams" '''createVehicleLocal''' [[getmarkerpos]] "tankFactory"
_tank = "M1Abrams" '''createVehicleLocal''' [[getMarkerPos]] "tankFactory"

Revision as of 02:42, 6 July 2006


type createVehicleLocal pos


Operand types:

type: String

pos: Array

Type of returned value:

Object

Compatibility:

Version 2.56 required.

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.


Example:

_tank = "M1Abrams" createVehicleLocal getMarkerPos "tankFactory"