IsAnimationOver
(Difference between revisions)
Dahnielson (Talk | contribs) |
Dahnielson (Talk | contribs) |
||
| Line 12: | Line 12: | ||
[[Category:Lua scripting]] | [[Category:Lua scripting]] | ||
| + | [[Category:Lua function]] | ||
| + | [[Category:Animation]] | ||
Revision as of 18:30, 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