I have been trying pretty much every animation with every playermodel and normal hl2 model and none of the walking/running animations even move the legs. The animations work perfectly when I am using the playermodel myself.
Any ideas?
function ENT:RunBehaviour()
while ( true ) do
if ( self:HaveEnemy() ) then
self.loco:FaceTowards( self:GetEnemy():GetPos() )
self:StartActivity( ACT_RUN )
self.loco:SetDesiredSpeed( 450 )
self.loco:SetAcceleration( 900 )
self:ChaseEnemy()
self.loco:SetAcceleration( 400 )
self:StartActivity( ACT_IDLE )
else
self:StartActivity( ACT_WALK )
self.loco:SetDesiredSpeed( 200 )
self:MoveToPos( self:GetPos() + Vector( math.Rand( -1, 1 ), math.Rand( -1, 1 ), 0 ) * 400 ) -- Walk to a random place within about 400 units ( yielding )
self:StartActivity( ACT_IDLE )
end
coroutine.wait( 2 )
end
end