setVehiclePosition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Reset ArmA ver)
(expanded)
Line 9: Line 9:
| Changes the object position.
| 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.  
If the markers array contains more than one name, the position of a random marker is used. Otherwise, the position defined in the first array is used.  


The object is placed inside a circle with this position as its center and placement as its radius. |= Description
The object is placed inside a circle with this position as its center and placement as its radius. |= Description
Line 23: Line 23:
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>[[player]] '''setVehiclePosition''' <nowiki>[[0, 0, 0], ["Marker1"], 0]</nowiki></code> |= Example 1
|x1= <code>[[player]] '''setVehiclePosition''' <nowiki>[[0, 0, 0], ["Pos1","Pos2","Pos3"], 0]</nowiki></code> Will place the player at either one of the three markers positions.|= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 20:59, 18 May 2007

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

Description

Description:
Changes the object position. If the markers array contains more than one name, the position of a random marker is used. Otherwise, the position defined in the first array is used. The object is placed inside a circle with this position as its center and placement as its radius.
Groups:
Uncategorised

Syntax

Syntax:
object setVehiclePosition [position, markers, placement]
Parameters:
object: Object
[position, markers, placement]: Array
Return Value:
Nothing

Examples

Example 1:
player setVehiclePosition [[0, 0, 0], ["Pos1","Pos2","Pos3"], 0] Will place the player at either one of the three markers positions.

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