WAC Helicopter Animations?

How can you make a WAC Helicopter change its animations?

I have the animations built into the model such as, idle, close, open, idle_o

But I need to find a way too make them work

I have tryed the following code but it fails with an error:

[lua]
function testanimation( player, command, arguments )
Entity.SetSequence(“idle_o”)
end
concommand.Add( “test”, testanimation )
[/lua]

It fails with error:
attempt to index global ‘Entity’ (a function value)

Any ideas facepunch?

Thanks in advance.

maybe self.Setquence(“idle_o”) ?

You should do this inside the entity’s code, Entity is a global function, and you didn’t define it locally in the function to be used anyways.

Try putting it inside ENT:Initialize() and do: self:SetSequence(“idle_o”).