Vehicle::getEngineHealth: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
No edit summary
Line 20: Line 20:
| Engine catches fire, health rapidly declines and blows up seconds later
| Engine catches fire, health rapidly declines and blows up seconds later
|}
|}
<br>Minimum: -4000<br>Maximum: 1000<br><br>-4000:
Maximum: 1000<br>
Minimum: -4000<br>
Note*: Returns 1000.0 if the function is unable to get the address of the specified vehicle or if it's not a vehicle.<br>
Note*: Returns 1000.0 if the function is unable to get the address of the specified vehicle or if it's not a vehicle.<br>
==Syntax==
==Syntax==

Revision as of 18:38, 6 August 2018

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

Maximum: 1000
Minimum: -4000
Note*: Returns 1000.0 if the function is unable to get the address of the specified vehicle or if it's not a vehicle.

Syntax

vehicle.getEngineHealth();

Required Arguments

Return value

  • float

Example

// todo

See also