Baseplate Posted February 2, 2013 Posted February 2, 2013 Hello, I've been wondering how to make someone follows some other guy? thanks.
manve1 Posted February 2, 2013 Posted February 2, 2013 toggleControl setControlState Looking for tutorials or information? check out: www.simpleask.co.uk
Baseplate Posted February 2, 2013 Author Posted February 2, 2013 toggleControl setControlState But, I don't think that could help. any examples?
Puma Posted February 2, 2013 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. "The total IQ of the world is a constant. The more people, the more idiots." - Anonymous.
Anderl Posted February 2, 2013 Posted February 2, 2013 It's not as simple as you guys are saying. You need to check for obstacles. "[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007
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