Blueman Posted June 29, 2011 Share Posted June 29, 2011 I want to make a ped follow a player of the same team. I've never really used peds so I don't really know to much about peds. Link to comment
DiSaMe Posted June 29, 2011 Share Posted June 29, 2011 If you want to script the ped yourself: setPedControlState to make the ped walk. setPedCameraRotation to make the ped face the right direction. Also, remember that these are client-side functions, so you'll need some server-client communication to keep the ped actions synced. I'd recommend using element data for this (for example, to set the element which the ped will follow). Link to comment
gokalpfirat Posted June 29, 2011 Share Posted June 29, 2011 Can i use attach element? Its not my problem but i want to know:) Link to comment
Gothem Posted June 29, 2011 Share Posted June 29, 2011 setPedControlState to make the ped walk.. Its better set the ped an animation of walking than using setPedControlState, so you can set the animation server-side too. 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