Hi, I am wondering what I can use to give an NPC godmode? I have tried many ways but failed every time.
If you’re spawning the npc with lua I would make the the npc global and then use **[Gamemode.ScaleNPCDamage
hook.Add( “InitPostEntity”, “Spawn Npc”, function()
NPC = ents.Create(“npc_mossman”)
NPC:SetPos(Vector(200.2566, -156.4668, -63.9688))
hook.Add(“ScaleNPCDamage”,“Unable to kill NPC”, function(npc,hitgroup,dmginfo )
if npc==NPC then
dmginfo:ScaleDamage( 0 )
Also another question.
My NPC’s legs are sorta in the ground moving around. Any clue why that would happen?
Also, I tried what you said Dragge in a Server-Side Folder and it did not work.
Here, I got an image for ya.
Spawn him a little bit above the ground and let him drop down
I tryed that, he dosent move.
i have it with my SNPC, it IS because it’s too low in the ground, spawn it higher, then move it slowly down until it moves
I have spawned it extremely higher and it didnt make a difference, it just stayed there. So, are you saying even though I spawn it higher there will be no visible difference until I get it perfect?
function ENT:TakeDamage() return end