I tried to make a snpc (custom bones)… I added custom animations in the .qc:
$sequence idle "idle.smd" ACT_IDLE 1 fps 30.00 $sequence walk "walk.smd" loop ACT_WALK 1 fps 30.00 $sequence run "run.smd" loop ACT_RUN 1 fps 30.00 .. etc
And in init.lua:
function ENT:SelectSchedule() self:SetSchedule( SCHED_RUN_RANDOM ) end
But it doesn’t work. The snpc stands still (and playing the idle animation) but he do not walking/running.
I think the problem is not the lua script, because I tested it with another .mdl (snpc) and he runs random. But not with my .mdl.
I think it’s a problem with compile file (.qc).
(I hope you understand what I mean :))