setVehiclePosition: Difference between revisions
Jump to navigation
Jump to search
(expanded) |
(corrected) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | Moves the object to a random position. | ||
Uses either the position that's defined in the first array, or one of the marker positions from the markers array. | |||
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>[[ | |x1= <code>[[player]] '''setVehiclePosition''' <nowiki>[[1000,2000], ["Pos1","Pos2","Pos3"], 0]</nowiki></code> Will place the player at either [1000,2000], or one of the three markers positions.|= Example 1 | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 20:14, 18 May 2007
Description
- Description:
- Moves the object to a random position. Uses either the position that's defined in the first array, or one of the marker positions from the markers array. 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 [[1000,2000], ["Pos1","Pos2","Pos3"], 0]
Will place the player at either [1000,2000], or 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