IsAnimationOver

(Difference between revisions)
Jump to: navigation, search
(Created page with "Do something when the current animation has finished playing. Note that it also apply to looped animations. Basic use : object = getObject("object") function onScene...")
 
Line 10: Line 10:
 
             end   
 
             end   
 
     end
 
     end
 +
 +
[[Category:Lua scripting]]

Revision as of 19:05, 4 February 2014

Do something when the current animation has finished playing. Note that it also apply to looped animations.

Basic use :

   object = getObject("object")
   function onSceneUpdate()
           if isAnimationOver(object) then
               --do something 
           end   
   end
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox