BlastDamageInfo

Hello. Just wondering, is this possible to call an extra function on victim that got hurt by DamageInfo? I need it to add extra effect to my grenade. Here’s a part of code containing blastdamageinfo:


local dmginfo = DamageInfo()
dmginfo:SetDamageType(DMG_BLAST)
dmginfo:SetAttacker( self.Owner )
dmginfo:SetDamage( 3 )


util.BlastDamageInfo( dmginfo, self:GetPos(), 500)
	

	self:Remove()

Use a hook for PlayerTakeDamage or whatever and check to see which entity gave the damage.

It worked, thank you for hinting me bro :smiley:
Thread solved.