Black2 Posted January 17, 2016 Share Posted January 17, 2016 Hello,I want that after a while,the ped back to do the animation was doing. whats wrong ? Thx. function refresh ( ) setPedAnimation, 5000, 1, ped1,"DANCING","DAN_Down_A", -1, false, false, false end setTimer ( refresh, 30000, 1 ) ---- function pedcreate () ped1 = createPed ( 83, 2353, 2143, 10.68, 90 ) pedanim = setTimer (setPedAnimation, 5000, 1, ped1,"DANCING","DAN_Down_A", -1, false, false, false ) setElementFrozen ( ped1, true ) end addEventHandler ( "onResourceStart", getRootElement(), pedcreate ) I know that if I use pedanim = setTimer (setPedAnimation, 5000, 1, ped1,"DANCING","DAN_Down_A", -1, true, true, false ) he will not lose the animation but this is only an example Link to comment
#RooTs Posted January 17, 2016 Share Posted January 17, 2016 use getPedAnimation -- more getElementData setElementeData 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