28WL Posted August 10, 2014 Share Posted August 10, 2014 In 1.3 version all things were good, no errors and other shiat. Well, I have a very big problem at this moment - animations at the DayZ resource. When I eat something, an animation does not stop even... It just continues all the time and I don't know how to stop this animation by scripts. function addPlayerCookMeat() local playersource = source setPedAnimation(source, "BOMBER", "BOM_Plant", nil, false, false, nil, false) ...Too much important to share. ...Too much important to share. setTimer(function() ...Too much important to share. ...Too much important to share. ...Too much important to share. end, 5000, 1) triggerClientEvent(source, "refreshInventoryManual", source) end addEvent("addPlayerCookMeat", true) addEventHandler("addPlayerCookMeat", getRootElement(), addPlayerCookMeat) Please, write/share the script codes, which would stop an animation after it's finish (1 time). Thanks. Link to comment
Moderators IIYAMA Posted August 10, 2014 Moderators Share Posted August 10, 2014 setPedAnimation(source,false) Link to comment
Et-win Posted August 10, 2014 Share Posted August 10, 2014 You could also read the wiki, then you knew it... Link to comment
28WL Posted August 10, 2014 Author Share Posted August 10, 2014 Your messages does not help me at all ... I'm too fast, I already know it. function addPlayerCookMeat() local playersource = source setPedAnimation(source, "BOMBER", "BOM_Plant", nil, false, false, nil, false) ...Too much important to share. ...Too much important to share. setTimer(function() ...Too much important to share. ...Too much important to share. ...Too much important to share. end, 5000, 1) triggerClientEvent(source, "refreshInventoryManual", source) setPedAnimation(source, false) end addEvent("addPlayerCookMeat", true) addEventHandler("addPlayerCookMeat", getRootElement(), addPlayerCookMeat) All in all, dissappears an animation... So wtf? How I should make an animation to not be repeated???????? Link to comment
Azfull Posted August 10, 2014 Share Posted August 10, 2014 Try this: function addPlayerCookMeat() local playersource = source setPedAnimation(source, "BOMBER", "BOM_Plant", -1, false, false, nil, false) ...Too much important to share. ...Too much important to share. setTimer(function() ...Too much important to share. ...Too much important to share. ...Too much important to share. end, 5000, 1) triggerClientEvent(source, "refreshInventoryManual", source) end addEvent("addPlayerCookMeat", true) addEventHandler("addPlayerCookMeat", getRootElement(), addPlayerCookMeat) Link to comment
28WL Posted August 10, 2014 Author Share Posted August 10, 2014 I already investigated that by myself. Thanks anyway for your help, which is useless for me now at this time. setPedAnimation(source, "BOMBER", "BOM_Plant", -1, false, false, false, false)--It's good. 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