Перейти к содержанию

Vehicle::setHalt

Материал из RAGE MP Wiki Archive

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

<syntaxhighlight lang="javascript">vehicle.setHalt(distance, killEngine, unknown);</syntaxhighlight>

Required Arguments

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

Return value

  • Undefined

Example

<syntaxhighlight lang="javascript"> // todo </syntaxhighlight>

See also