Vehicle::setHalt: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(misleading information on killEngine)
 
Line 1: Line 1:
This native makes the vehicle stop immediately, as happens when we enter a MP garage.<br><br>. distance defines how far it will travel until stopping. Garage doors use 3.0.<br><br>. If killEngine is set to 1, you cannot resume driving the vehicle once it stops. This looks like is a bitmapped integer.
This native makes the vehicle stop immediately, as happens when we enter a MP garage.<br><br>. distance defines how far it will travel until stopping. Garage doors use 3.0.<br><br>. 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==
==Syntax==
<syntaxhighlight lang="javascript">vehicle.setHalt(distance, killEngine, unknown);</syntaxhighlight>
<syntaxhighlight lang="javascript">vehicle.setHalt(distance, killEngine, unknown);</syntaxhighlight>

Latest revision as of 13:57, 26 November 2017

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