Whenever I try to make my NPC perform an animation it never quite works. He/She starts to move for a split second then returns to the normal idle position. The function below is what I’m calling by pressing the space bar. How do I make it so that the NPC carries through with the whole animation?
[lua]
function npcjump()
local seq = mynpc:LookupSequence("cheer1")
mynpc:SetPlaybackRate( 1.0 )
mynpc:SetSequence(seq)
end
[/lua]