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) Sorry for lot of questions and thanks for the answers!
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) Paid developer. Twitter: @willia_am - http://www.williamdasilva.fr
dugasz1 Posted August 20, 2013 Author Posted August 20, 2013 I tried but doesnt work Sorry for lot of questions and thanks for the answers!
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). - MTA Script Editor - Ask your scripting questions properly, please. - 50p's public resources - Meta.xml - what is it for? How is it possible LOL
dugasz1 Posted August 20, 2013 Author Posted August 20, 2013 Thank you:) and need to be delay betwen hits and working Sorry for lot of questions and thanks for the answers!
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