I need help getting the idle animation for every player.
This is what I came up with and I hope theres a better solution.
[CODE]local anims = {["models/player/combine_soldier_prisonguard.mdl"] = "idle_unarmed"} --table to manually define the idle animation for every model
self.preview:SetModel(model)
if self.preview.Entity then
local act, duration = self.preview:GetEntity():LookupSequence(anims[model] or "idle")
if act > 0 then
self.preview:GetEntity():SetSequence(act)
end
end[/CODE]
Ok solved it myself: Just don't set an animation/sequence it will then use the idle animation (except it the model has no animations but then you alsso run around in t-pose if you play as the model).
Sorry, you need to Log In to post a reply to this thread.