Wei Posted April 19, 2012 Share Posted April 19, 2012 (edited) So I have the police system that i've maded... But i want to make to player (wanted) will folow the player(police man)? I know how to make col and stuff but I don't know how to take player control and will follow the police man ! CODE: removed Edited April 19, 2012 by Guest Link to comment
Castillo Posted April 19, 2012 Share Posted April 19, 2012 You'll need to make it client side as well, in the MTA community there's "j-jobs", it has the ped-follow-cop thing, you could look on how it's done. Link to comment
Wei Posted April 19, 2012 Author Share Posted April 19, 2012 ok... i'll take a look thanks Link to comment
Alpha Posted April 19, 2012 Share Posted April 19, 2012 Maybe this will help: function findRotation(startPosX, startPosY, endPosX, endPosY) return 360 - (math.deg(math.atan2(endPosX - startPosX, endPosY - startPosY)) % 360) end Link to comment
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