Baseplate Posted February 2, 2013 Share Posted February 2, 2013 Hello, I've been wondering how to make someone follows some other guy? thanks. Link to comment
manve1 Posted February 2, 2013 Share Posted February 2, 2013 toggleControl setControlState Link to comment
Baseplate Posted February 2, 2013 Author Share Posted February 2, 2013 toggleControl setControlState But, I don't think that could help. any examples? Link to comment
Baseplate Posted February 2, 2013 Author Share Posted February 2, 2013 Ohh, I got it now. thanks guys. Link to comment
Puma Posted February 2, 2013 Share Posted February 2, 2013 If you want the ped to exactly walk into your steps at a distance, I would recommend this: onClientRender/onClientPreRender/setTimer: Let ped face towards you using https://wiki.multitheftauto.com/wiki/FindRotation (fill in your x,y and ped's x,y). Get distance between you and the ped using getDistanceBetweenPoints3D. When distance < x (followdistance), use setPedControlState to make the ped running, if he isn't already running to you. When distance > x, use setPedControlState to stop the ped from running, if he is still running. Ped will always be looking at you, when you are getting too far away, he will keep running to you until distance between you and him < x. Link to comment
Anderl Posted February 2, 2013 Share Posted February 2, 2013 It's not as simple as you guys are saying. You need to check for obstacles. 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