GetVehicleHealth: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
retvals=The health of the vehicle on success, 0.0 on failure (invalid/not streamedin vehicle)| | retvals=The health of the vehicle on success, 0.0 on failure (invalid/not streamedin vehicle)| | ||
relfuncs=*[[GetVehicleDamage]] | relfuncs=*[[GetVehicleDamage]] | ||
*[[ | *[[GetPlayerHealth]]}} |
Revision as of 17:08, 21 August 2023
This function was added in v1.7 (not released yet) and will not work on previous versions.
Description:
Returns the health of the vehicle as float
Parameters:
(vehicleid)
vehicleid : The ID of the vehicle whose health is to be found
Return Values:
The health of the vehicle on success, 0.0 on failure (invalid/not streamedin vehicle)
Related Functions
The following functions may be helpful as they relate to this function in one way or another.