CPed::SetWeaponLockOnTarget

This commit is contained in:
Sergeanur 2020-12-14 09:47:07 +02:00
commit f42a01f653
5 changed files with 20 additions and 32 deletions

View file

@ -863,6 +863,13 @@ public:
SetMoveState(PEDMOVE_WALK);
}
inline void SetWeaponLockOnTarget(CEntity *target)
{
m_pPointGunAt = (CPed *)target;
if(target)
((CEntity *)target)->RegisterReference(&m_pPointGunAt);
}
// Using this to abstract nodes of skinned and non-skinned meshes
CVector GetNodePosition(int32 node)
{