[saco] Implement/match CActorPed::SetActionTrigger(...)

This commit is contained in:
RD42 2024-10-30 18:10:48 +08:00
parent dc5b5ec1c0
commit f6d232a45c
2 changed files with 10 additions and 0 deletions

View File

@ -193,3 +193,12 @@ BYTE CActorPed::GetActionTrigger()
//-----------------------------------------------------------
void CActorPed::SetActionTrigger(BYTE byteTrigger)
{
if(!m_pPed) return;
m_pPed->dwAction = byteTrigger;
}
//-----------------------------------------------------------

View File

@ -22,6 +22,7 @@ public:
void SetStateFlags(DWORD dwStateFlags);
BOOL IsDead();
BYTE GetActionTrigger();
void SetActionTrigger(BYTE byteTrigger);
void ApplyAnimation(char *szAnimName, char *szAnimFile, float fT,
int opt1, int opt2, int opt3, int opt4, int iUnk);