[saco] Implement/match CVehicle::SetHealth(...)

This commit is contained in:
RD42
2024-08-20 23:01:30 +08:00
parent 91d7bff083
commit 4487d2b715
2 changed files with 10 additions and 0 deletions

View File

@ -100,3 +100,12 @@ float CVehicle::GetHealth()
//-----------------------------------------------------------
void CVehicle::SetHealth(float fHealth)
{
if(m_pVehicle) {
m_pVehicle->fHealth = fHealth;
}
}
//-----------------------------------------------------------

View File

@ -23,6 +23,7 @@ public:
void SetLockedState(int iLocked);
float GetHealth();
void SetHealth(float fHealth);
BOOL HasADriver();