mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[saco] Implement/match CVehicle::GetHealth()
This commit is contained in:
parent
f1febb6911
commit
91d7bff083
@ -92,3 +92,11 @@ void CVehicle::SetEngineState(BOOL bState)
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
float CVehicle::GetHealth()
|
||||
{
|
||||
if(m_pVehicle) return m_pVehicle->fHealth;
|
||||
else return 0.0f;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
|
@ -22,6 +22,8 @@ public:
|
||||
|
||||
void SetLockedState(int iLocked);
|
||||
|
||||
float GetHealth();
|
||||
|
||||
BOOL HasADriver();
|
||||
|
||||
void SetEngineState(BOOL bState);
|
||||
|
Loading…
Reference in New Issue
Block a user