IsAnimationOver
From MaratisWiki
(Difference between revisions)
(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...") |
Dahnielson (Talk | contribs) m |
||
(3 intermediate revisions by one user not shown) | |||
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. | |
+ | |||
+ | {{lua-function-param|object|object to operate on}} | ||
object = getObject("object") | object = getObject("object") | ||
Line 10: | Line 11: | ||
end | end | ||
end | end | ||
+ | |||
+ | [[Category:Lua scripting]] | ||
+ | [[Category:Lua function]] | ||
+ | [[Category:Animation]] |
Latest revision as of 00:59, 9 February 2014
isAnimationOver(object)
Do something when the current animation has finished playing. Note that it also apply to looped animations.
-
object
: object to operate on
object = getObject("object") function onSceneUpdate() if isAnimationOver(object) then --do something end end