Garry's Mod Wiki

util.BlastDamage

  util.BlastDamage( Entity inflictor, Entity attacker, Vector damageOrigin, number damageRadius, number damage )

Description

Applies explosion damage to all entities in the specified radius. Performs block checking.

Arguments

1 Entity inflictor
The entity that caused the damage.
2 Entity attacker
The entity that attacked.
3 Vector damageOrigin
The center of the explosion
4 number damageRadius
The radius in which entities will be damaged.
5 number damage
The amount of damage to be applied.