setVehiclePosition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 23: Line 23:
'''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.
Changes the object position.
 
If the markers array contains more than one marker name, 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]
[[player]] '''setVehiclePosition''' [[0, 0, 0], ["Marker1"], 0]

Revision as of 21:42, 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 name, 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]