Jump to content

How to make a prisoner follows the cop


Hero192

Recommended Posts

Posted

As you see from the topic's name, I am trying to make an arrest system, I want to know how to force the prisoner to follows the cop who arrested him.

Posted

Check the distance between the 2, force the client which is following the cop to either run or sprint and press some buttons to make him walk after the cop. Make sure to do this in a fairly short timer to make it as realistic as possible. Functions used, I guess;

getElementPosition 
getDistanceBetweenPoints3D 
setControlState 
setTimer 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...