• Why doesn't anything work on customized NPC's?
    0 replies, posted
So I have been dealing with a handful of problems lately on my latest creation. Mostly animation issues. I cannot seem to make my custom NPCs preform any animations at all. I have been told by a close friend who is helping me make this addon that since we customized a original npc and made a new npc branching from the original npc, the original functionalities of the new npc won't work. Sorry if I am terrible at explaining this but here is an example. if math.random(1,10) == 1 then Antlion1 = ents.Create("npc_emberlion") Antlion1:SetKeyValue( "startburrowed", "1" ) Antlion1:SetPos( self.npc:GetPos() + self.npc:GetRight() * math.random(-180,-200)) Antlion1:DropToFloor() Antlion1:Spawn() Antlion1:Activate() timer.Simple(3,function() Antlion1:Fire("Unburrow") end) (This is part of a function not the whole thing, and if anything is combined in the code like ifmath.random, it's not originally in the code, I just suck at pasting it and fixing it.) So long story short, the "Antlion1:Fire("Unburrow")" does not work for the custom npc, BUT it does work with the original npc, the npc_antlion. Another thing that is sort of related to this problem is having the NPC's ragdoll deleted. While deleting the physical NPC is fine, the ragdoll isn't and I am not sure why. function ENT:OnRemove() if IsValid(self.npc) then self.npc:Remove() end if IsValid(self.corpse) then self.corpse:Remove() end end Same issue, idk why this isn't working, and even if there is no way to restore normal functionality, I would at least like insight to why this is truly happening.. Thank you and I hope you all have a great day!
Sorry, you need to Log In to post a reply to this thread.