• Make Nextbots take no damage.
    3 replies, posted
I have been trying for a while now... cant figure it out. searched and tried a few things, and could not get it working.
Try messing around with this hook and it's damageinfo argument. [url]http://wiki.garrysmod.com/page/NEXTBOT/OnInjured[/url]
[lua] function ENT:OnInjured(dmginfo) return 0 end [/lua] Haven't looked at my npc code for a little while, so I'm not quite sure, but I think that should work.
[QUOTE=Nornan12;42871866][lua] function ENT:OnInjured(dmginfo) return 0 end [/lua] Haven't looked at my npc code for a little while, so I'm not quite sure, but I think that should work.[/QUOTE] My bad, I meant [lua] function ENT:OnInjured(dmginfo) dmginfo:SetDamage(0) end [/lua]
Sorry, you need to Log In to post a reply to this thread.