setVehiclePosition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 14: Line 14:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[Object]] '''setVehiclePosition''' [ [[Position]], markers, radius] |= Syntax
| object '''setVehiclePosition''' [position, markers, placement] |= Syntax


|p1= [[Object]] |= Parameter 1
|p1= object: [[Object]] |= Parameter 1
 
|p2= [position, markers, placement]: [[Array]] |= Parameter 2
|p2= [[Position]]
|p3= position: [[Array]] - format [[Position]] |= Parameter 3
|p3= markers:[[Array]]
|p4= markers: [[Array]] - format [[Position]] |= Parameter 4
|p4= radius: [[Number]] |= Parameter 2
|p5= placement: [[Number]] |= Parameter 5


| [[Nothing]] |= Return value
| [[Nothing]] |= Return value

Revision as of 22:05, 25 January 2009

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

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
position: Array - format Position
markers: Array - format Position
placement: Number
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

Notes

Bottom Section