mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-11-23 06:20:22 +00:00
[saco] Implement/match CActorPed::ToggleImmunity(...)
This commit is contained in:
parent
007f7729f9
commit
7e8ea75194
@ -214,3 +214,16 @@ BOOL CActorPed::IsInVehicle()
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
void CActorPed::ToggleImmunity(BYTE byteEnable)
|
||||
{
|
||||
if(!m_pPed) return;
|
||||
|
||||
m_byteImmune = byteEnable;
|
||||
|
||||
if(byteEnable)
|
||||
ScriptCommand(&set_actor_immunities,m_dwGTAId,1,1,1,1,1);
|
||||
else
|
||||
ScriptCommand(&set_actor_immunities,m_dwGTAId,0,0,0,1,0);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
@ -29,6 +29,7 @@ public:
|
||||
int opt1, int opt2, int opt3, int opt4, int iUnk);
|
||||
void ClearAnimations();
|
||||
|
||||
void ToggleImmunity(BYTE byteEnable);
|
||||
|
||||
PED_TYPE *m_pPed;
|
||||
DWORD m_dwMarkerID;
|
||||
|
Loading…
Reference in New Issue
Block a user