Jump to content

[HELP]Why Don't Work ?


Black2

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...