Hi i'm making a SNPC but on function [B]ENT:Killed()[/B] [B]and if the NPC comes to close[/B] i have to make it explode Does sombody know how I should make my function [B]ENT:Explode()[/B] ??
So this is what i got on [B]function ENT:Killed()[/B]
[CODE]function ENT:Killed()
if math.random(1,3) == 1 then
self:EmitSound( self.die1,460,math.random(80,120))
elseif math.random(1,3) == 2 then
self:EmitSound( self.die2,460,math.random(80,120))
elseif math.random(1,3) == 3 then
self:EmitSound( self.die3,460,math.random(80,120))
end
self:Explode()
end[/CODE]
SO now i need to have an ENT explode.
Thx in advance !
[URL="http://wiki.garrysmod.com/page/util/Effect"]util.Effect[/URL] and [URL="http://wiki.garrysmod.com/page/util/BlastDamage"]util.BlastDamage[/URL]
Sorry, you need to Log In to post a reply to this thread.