Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.



Introduced in

Version:1.00

Description

Description:

Moves the object to a random position. The object is placed inside a circle with this position as its center and placement as its radius.

Uses either the position that is defined in the first array, or one of the marker positions from the passed markers array.

Syntax

Syntax:object setVehiclePosition [position, markers, placement]
Parameters:
  • object: Object - Affected object.
  • position: Position-2 - Candidate position to move the object to.
  • markers: Position-2 - Other candidate positions to move the object to.
  • placement: Number
Return Value:Nothing

Examples

Examples:
player setVehiclePosition [[1000,2000], ["Pos1","Pos2","Pos3"], 0] // places the player at either [1000,2000], or one of the three markers positions

Additional Information

See also:
Multiplayer:
Problems:

Notes