So heres my problem, SetSequence is not working clientside (is it even supposed to?), and running it serverside causes the animation to be choppy.
This is all I'm doing:
[lua]
function ENT:Initialize()
self:SetModel("models/lamarr.mdl")
self:SetSequence("idle01")
self:SetPlaybackRate(1.0)
end[/lua]
Any other way to animate a model? Theres got to be something I'm doing wrong.
oh, and ent:Fire("setanimation", "idle01", 0) does the same thing.
Just thought I'd post since this is relevant to my interests.
I'm also suffering from laggy animations serverside. Clientside, I can play one animation. Thereafter, it won't play any sequence whatsoever.
[QUOTE=Turd92;16310224]Just thought I'd post since this is relevant to my interests.
I'm also suffering from laggy animations serverside. Clientside, I can play one animation. Thereafter, it won't play any sequence whatsoever.[/QUOTE]
For laggy animation serverside, add ENT.AutomaticFrameAdvance = true in shared.lua, and you'll also need a Think function that runs at the maximum speed (add this at this at the end of your Think function)
[lua]self:NextThink(CurTime())
return true[/lua]
[QUOTE=_Kilburn;16311356]For laggy animation serverside, add ENT.AutomaticFrameAdvance = true in shared.lua, and you'll also need a Think function that runs at the maximum speed (add this at this at the end of your Think function)
[lua]self:NextThink(CurTime())
return true[/lua][/QUOTE]
Thanks!
[QUOTE=_Kilburn;16311356]For laggy animation serverside, add ENT.AutomaticFrameAdvance = true in shared.lua, and you'll also need a Think function that runs at the maximum speed (add this at this at the end of your Think function)
[lua]self:NextThink(CurTime())
return true[/lua][/QUOTE]
AutomaticFrameAdvance is already enabled, but I'll defo try that Think stuff. I'll edit once I've tried it out. Thanks!
[editline]Edited:[/editline]
Great, it's fixed! Thanks _Kilburn!
[img]http://www.environmentaltalk.com/wp-content/uploads/happy_moose.jpg[/img]
Sorry, you need to Log In to post a reply to this thread.