iPanda Posted July 22, 2013 Share Posted July 22, 2013 Hello everyone! I have a question: how to make an animation that will be done only once. So, I clicked on the H key, my player play the animation only once, and I can continue playing. I have a similar script, but there is no main function, which gives the animation only once. Please help. function maskAnimation ( thePed ) setPedAnimation ( thePed, "goggles", "goggles_put_on", 1000, false, false, false ) end Link to comment
Vector Posted July 22, 2013 Share Posted July 22, 2013 function maskAnimation ( thePed ) setPedAnimation ( thePed, "goggles", "goggles_put_on", 1000, false, false, false ) setTimer (setPedAnimation, 1000, 1, thePed); -- ped will stop the animation after 1 second. end 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