AnimationComplete

Constructor:

AnimationComplete()

Description

This event is triggered when the animation finishes playing.

Examples

Create an avatar to play the Climb action. Trigger this event when the Climb animation finishes playing.

local player = RWObject.Create("Avatar") -- create an avatar
player.Position = Vector3(0,0.125,3) -- assign a vector to the avatar position
local climb = player. animation. climb -- retrieve the Climb action position
climb.AnimationComplete:Connect(function() -- register an animation event that is triggered when the animation finishes playing
    print("The event that the animation finishes playing is triggered")
end)
wait(1) -- wait 1
climb.LocalClipId = "Climb" -- assign a value to the animation
climb:PlayAnimation() -- play the animation