[saco] Implement/match CActorPed::GetHealth()

This commit is contained in:
RD42 2024-10-24 22:27:06 +08:00
parent 546b2cdeef
commit 10ff963170
2 changed files with 9 additions and 0 deletions

View File

@ -66,3 +66,11 @@ void CActorPed::Destroy()
//----------------------------------------------------------- //-----------------------------------------------------------
float CActorPed::GetHealth()
{
if(!m_pPed) return 0.0f;
return m_pPed->fHealth;
}
//-----------------------------------------------------------

View File

@ -13,6 +13,7 @@ public:
void Destroy(); void Destroy();
float GetHealth();
PED_TYPE *m_pPed; PED_TYPE *m_pPed;
DWORD m_dwMarkerID; DWORD m_dwMarkerID;