RubySent Posted June 26, 2021 Share Posted June 26, 2021 (edited) How to turn ped towards the player? How to calculate this vector: ped.Rotation? Help me plese Edited June 26, 2021 by RubySent error Link to comment Share on other sites More sharing options...
DuncanMac Posted June 26, 2021 Share Posted June 26, 2021 Have you looked at the natives database? Ped1.Task.TurnTo(Ped3) TASK_TURN_PED_TO_FACE_ENTITY(Ped ped, Entity entity, int duration) TASK_TURN_PED_TO_FACE_COORD(Ped ped, float x, float y, float z, int duration) Here is an example where 2 peds are scripted to turn towards each other. Use game.player.character to replace a ped. RubySent 1 Link to comment Share on other sites More sharing options...
RubySent Posted June 29, 2021 Author Share Posted June 29, 2021 On 6/26/2021 at 7:32 PM, DuncanMac said: Here is an example where 2 peds are scripted to turn towards each other. Use game.player.character to replace a ped. Thank you, bro Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now