mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 14:37:29 +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();
|
||||
BYTE GetActionTrigger();
|
||||
void SetActionTrigger(BYTE byteTrigger);
|
||||
BOOL IsInVehicle();
|
||||
|
||||
void ApplyAnimation(char *szAnimName, char *szAnimFile, float fT,
|
||||
int opt1, int opt2, int opt3, int opt4, int iUnk);
|
||||
|
Loading…
Reference in New Issue
Block a user