mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-23 06:57:31 +08:00
[saco] Implement/match CActorPed::GetHealth()
This commit is contained in:
parent
546b2cdeef
commit
10ff963170
@ -66,3 +66,11 @@ void CActorPed::Destroy()
|
|||||||
|
|
||||||
//-----------------------------------------------------------
|
//-----------------------------------------------------------
|
||||||
|
|
||||||
|
float CActorPed::GetHealth()
|
||||||
|
{
|
||||||
|
if(!m_pPed) return 0.0f;
|
||||||
|
return m_pPed->fHealth;
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user