IsAnimationOver
(Difference between revisions)
Dahnielson (Talk | contribs) |
Dahnielson (Talk | contribs) |
||
Line 1: | Line 1: | ||
− | + | {{lua-function|isAnimationOver|object}} | |
− | + | ||
− | + | Do something when the current animation has finished playing. Note that it also apply to looped animations. | |
+ | |||
+ | '''Example:''' | ||
object = getObject("object") | object = getObject("object") |
Revision as of 16:58, 8 February 2014
isAnimationOver(object)
Do something when the current animation has finished playing. Note that it also apply to looped animations.
Example:
object = getObject("object") function onSceneUpdate() if isAnimationOver(object) then --do something end end