mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-04 00:23:22 +08:00
[saco] Implement/match CActorPed::IsInVehicle()
This commit is contained in:
parent
f6d232a45c
commit
007f7729f9
@ -202,3 +202,15 @@ void CActorPed::SetActionTrigger(BYTE byteTrigger)
|
|||||||
|
|
||||||
//-----------------------------------------------------------
|
//-----------------------------------------------------------
|
||||||
|
|
||||||
|
BOOL CActorPed::IsInVehicle()
|
||||||
|
{
|
||||||
|
if(!m_pPed) return FALSE;
|
||||||
|
|
||||||
|
if(IN_VEHICLE(m_pPed)) {
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------
|
||||||
|
|
||||||
|
@ -23,6 +23,7 @@ public:
|
|||||||
BOOL IsDead();
|
BOOL IsDead();
|
||||||
BYTE GetActionTrigger();
|
BYTE GetActionTrigger();
|
||||||
void SetActionTrigger(BYTE byteTrigger);
|
void SetActionTrigger(BYTE byteTrigger);
|
||||||
|
BOOL IsInVehicle();
|
||||||
|
|
||||||
void ApplyAnimation(char *szAnimName, char *szAnimFile, float fT,
|
void ApplyAnimation(char *szAnimName, char *szAnimFile, float fT,
|
||||||
int opt1, int opt2, int opt3, int opt4, int iUnk);
|
int opt1, int opt2, int opt3, int opt4, int iUnk);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user