Log In  

I'm trying to activate / deactivate an animation from a script, but regardless of what I do the animation only follows the activation rules set in the editor.

I have a animation for the character talking that I want to deactivate when they're not talking but, I can't get the animation to deactivate.

I have the following script attached.

function update ()

   if (is_talking) then
      this:activate (557)
   else
      this:deactivate (557)
      move_with_buttons (this)
   end

end

Has anyone encountered this problem / got any solutions ?

Thanks.

P#60680 2019-01-08 15:22 ( Edited 2019-01-08 15:22)


[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-19 18:51:57 | 0.021s | Q:9