Is it possible?
I’m currently trying to re-create the original half life zombies using nextbots, and for the zombie I would like a headcrab to be attached to him.
I tried doing this, but the headcrab would just slide off/be attached weirdly/still be awake:
function ENT:Initialize() self:SetModel("models/Zombie/Classic.mdl"); self:SetHealth(150); local headcrab = ents.Create("npc_headcrab") local attachment = self:GetAttachment(self:LookupAttachment("headcrab")); headcrab:SetPos(attachment.Pos); headcrab:Spawn(); headcrab:SetParent(self, 1); headcrab:SetSolid(SOLID_NONE); end
Any ideas would be appreciated.