Vehicle::setHalt

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

This native makes the vehicle stop immediately, as happens when we enter a MP garage.

. distance defines how far it will travel until stopping. Garage doors use 3.0.

. killEngine is the time in seconds that the engine will be off for, it must be set to at least 1 for the vehicle to stop. This looks like is a bitmapped integer.

Syntax

vehicle.setHalt(distance, killEngine, unknown);

Required Arguments

  • distance: float
  • killEngine: int
  • unknown: Boolean

Return value

  • Undefined

Example

// todo

See also