mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-03 16:13:34 +08:00
[saco] Implement and match CPlayerPed::SetActionTrigger(...)
This commit is contained in:
parent
526dff8889
commit
9c4d7692a6
@ -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)
|
||||||
|
@ -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();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user