dugasz1 Posted August 20, 2013 Posted August 20, 2013 Hi! I set my Ped in fire whit: setPedControlState ( thePed, "fire", true ) He hit once and end. How can i loop it? (He hasn't got weapont only his fist, whit weapont its working)
FatalTerror Posted August 20, 2013 Posted August 20, 2013 Hi!I set my Ped in fire whit: setPedControlState ( thePed, "fire", true ) He hit once and end. How can i loop it? (He hasn't got weapont only his fist, whit weapont its working) Use timers? setTimer(setPedControlState, 1000, 0, thePed, "fire", true)
50p Posted August 20, 2013 Posted August 20, 2013 You have to set the control state to false, the to true. It's like pressing mouse button, once you press it (true), you can't press again until you release it (false).
dugasz1 Posted August 20, 2013 Author Posted August 20, 2013 Thank you:) and need to be delay betwen hits and working
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