From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Returns true if the object has finished moving. If false, moves the object towards the specified X, Y and Z coordinates with the specified X, Y and Z speed.
See also: gtag.gtagaming.com/opcode-database/opcode/034E/
Has to be called in a render or it will not slide but move some amount and stop.


object.slide(toX, toY, toZ, speedX, speedY, speedZ, collision);

Required Arguments

  • toX: float
  • toY: float
  • toZ: float
  • speedX: float
  • speedY: float
  • speedZ: float
  • collision: Boolean

Return value

  • Boolean


mp.events.add('render', () => {
  object.slide(position.x, position.y, position.z, 1.0, 1.0, 1.0, false);

See also