diff --git a/saco/game/actorped.cpp b/saco/game/actorped.cpp index 522d6b8..b7ec013 100644 --- a/saco/game/actorped.cpp +++ b/saco/game/actorped.cpp @@ -89,6 +89,14 @@ void CActorPed::ClearAnimations() //----------------------------------------------------------- +void CActorPed::SetTargetRotation(float fRotation) +{ + if(!m_pPed) return; + if(!GamePool_Ped_GetAt(m_dwGTAId)) return; + + m_pPed->fRotation2 = DegToRad(fRotation); +} + //----------------------------------------------------------- float CActorPed::GetHealth() diff --git a/saco/game/actorped.h b/saco/game/actorped.h index 26587da..1534ceb 100644 --- a/saco/game/actorped.h +++ b/saco/game/actorped.h @@ -13,6 +13,7 @@ public: void Destroy(); + void SetTargetRotation(float fRotation); float GetHealth(); float GetArmour(); void SetArmour(float fArmour);