[saco] Implement and match CPlayerPed::SetActionTrigger(...)

This commit is contained in:
RD42 2024-05-05 22:16:50 +08:00
parent 526dff8889
commit 9c4d7692a6
2 changed files with 10 additions and 0 deletions

View File

@ -235,6 +235,15 @@ BYTE CPlayerPed::GetActionTrigger()
return (BYTE)m_pPed->dwAction; return (BYTE)m_pPed->dwAction;
} }
//-----------------------------------------------------------
void CPlayerPed::SetActionTrigger(BYTE byteTrigger)
{
if(!m_pPed) return;
m_pPed->dwAction = byteTrigger;
}
//----------------------------------------------------------- //-----------------------------------------------------------
void CPlayerPed::GiveWeapon(int iWeaponID, int iAmmo) void CPlayerPed::GiveWeapon(int iWeaponID, int iAmmo)

View File

@ -36,6 +36,7 @@ public:
void SetStateFlags(DWORD dwStateFlags); void SetStateFlags(DWORD dwStateFlags);
BOOL IsDead(); BOOL IsDead();
BYTE GetActionTrigger(); BYTE GetActionTrigger();
void SetActionTrigger(BYTE byteTrigger);
WORD GetAmmo(); WORD GetAmmo();