setVehiclePosition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 3: Line 3:
[[Category:Scripting Commands ArmA|SETVEHICLEPOSITION]]
[[Category:Scripting Commands ArmA|SETVEHICLEPOSITION]]


<new command not populated>


<h2 style="color:#000066">'''''object'' setVehiclePosition ''[position, markers, placement]'''''</h2>


<h2 style="color:#000066">''''' setVehiclePosition '''''</h2>


'''Operand types:'''


'''Operand types:'''
'''object:''' [[Object]]
 
'''[position, markers, placement]:''' [[Array]]


'''Type of returned value:'''
'''Type of returned value:'''
[[Nothing]]


'''Compatibility:'''
'''Compatibility:'''
Version 2.32 required.


'''Description:'''
'''Description:'''


Changes the object position. If the markers array contains more than one marker names, the position of a random one is used. Otherwise, the given position is used. The object is placed inside a circle with this position as its center and placement as its radius.


'''Example:'''
'''Example:'''
player '''setVehiclePosition''' [[0, 0, 0], ["Marker1"], 0]

Revision as of 17:40, 4 July 2006


object setVehiclePosition [position, markers, placement]


Operand types:

object: Object

[position, markers, placement]: Array

Type of returned value:

Nothing

Compatibility:

Version 2.32 required.

Description:

Changes the object position. If the markers array contains more than one marker names, the position of a random one is used. Otherwise, the given position is used. The object is placed inside a circle with this position as its center and placement as its radius.

Example:

player setVehiclePosition [[0, 0, 0], ["Marker1"], 0]