I'm trying to make a poison zombie torso. and the code is at the bottom. and my problem is that first off the torso is slightly floating? and when disable ai is on it goes to T animation instead of idle animation. Help?
function ENT:RunBehaviour()
while ( true ) do
timer.Simple(1.7,function()
end)
local ent = ents.Create("npc_poisonzombie")
ent:SetPos(self:GetPos() + Vector(0,0,20))
ent:SetAngles(self:GetAngles())
ent:Spawn()
ent:SetModel("models/zombie/poison_torso.mdl")
ent:SetKeyValue( "crabcount", 0 )
ent:SetSaveValue("m_fIsTorso", true)
ent:SetName("Poison Zombie Torso")
undo.Create( "Poison Zombie Torso" )
local k, v
for k, v in ipairs( ents.GetAll( ) ) do
if v:IsPlayer() then
undo.AddEntity( ent )
undo.SetPlayer( v )
undo.Finish()
SafeRemoveEntity(self)
coroutine.yield()
end
end
end
end
pls help
Sorry, you need to Log In to post a reply to this thread.