dugasz1 Posted August 20, 2013 Share 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) Link to comment
FatalTerror Posted August 20, 2013 Share 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) Link to comment
dugasz1 Posted August 20, 2013 Author Share Posted August 20, 2013 I tried but doesnt work Link to comment
50p Posted August 20, 2013 Share 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). Link to comment
dugasz1 Posted August 20, 2013 Author Share Posted August 20, 2013 Thank you:) and need to be delay betwen hits and working 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