PlayAnimation

Constructor:

PlayAnimation()

Description

Play the current animation.

Examples

Create an avatar to play the Climb animation.

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