ChangeAnimation

Play or change an animation. Note that it also apply to looped animations.

object = getObject("object") function onSceneUpdate -- On "W" Key Press if isKeyPressed("W") then -- Play Walk Animtion changeAnimation(object, "1") end -- On "W" Key Release if onKeyUp("W") then -- Change to Pose changeAnimation(object, "0") end end