StopAnimation

Constructor:

StopAnimation()

Description

Stop playing the current animation.

Examples

Create an avatar to play the Climb animation, and stop it after 2 seconds.

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
wait(0.5) -- wait 0.5
climb.LocalClipId = "Climb" -- assign a value to the animation
climb.Loop = true -- enable looping
climb:PlayAnimation() -- play the animation
wait(2) -- wait 2
climb:StopAnimation() -- stop playing