Vehicle::getEngineHealth: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
No edit summary
Line 1: Line 1:
Returns 1000.0 if the function is unable to get the address of the specified vehicle or if it's not a vehicle.<br><br>Minimum: -4000<br>Maximum: 1000<br><br>-4000: Engine is destroyed<br>0 and below: Engine catches fire and health rapidly declines<br>300: Engine is smoking and losing functionality<br>1000: Engine is perfect
Returns 1000.0 if the function is unable to get the address of the specified vehicle or if it's not a vehicle.<br><br>Minimum: -4000<br>Maximum: 1000<br><br>-4000: Engine is destroyed<br>0 and below: Engine catches fire and health rapidly declines<br>300: Engine is smoking and losing functionality<br>1000: Engine is perfect
{| class="wikitable"
|+Food complements
|-
|Engine Health
|Status
|-
|1000
|Perfect - Undamaged
|-
|< 1000
|Damaged
|-
|< 400
| Engine is smoking and losing functionality
|-
| 0
| Engine stops working and car is not drivable
|-
| < 0
| Engine catches fire, health rapidly declines and blows up seconds later
|}
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">vehicle.getEngineHealth();</syntaxhighlight>
<syntaxhighlight lang="javascript">vehicle.getEngineHealth();</syntaxhighlight>

Revision as of 18:35, 6 August 2018

Returns 1000.0 if the function is unable to get the address of the specified vehicle or if it's not a vehicle.

Minimum: -4000
Maximum: 1000

-4000: Engine is destroyed
0 and below: Engine catches fire and health rapidly declines
300: Engine is smoking and losing functionality
1000: Engine is perfect

Food complements
Engine Health Status
1000 Perfect - Undamaged
< 1000 Damaged
< 400 Engine is smoking and losing functionality
0 Engine stops working and car is not drivable
< 0 Engine catches fire, health rapidly declines and blows up seconds later

Syntax

vehicle.getEngineHealth();

Required Arguments

Return value

  • float

Example

// todo

See also