S&box Wiki

Revision Difference

ent_explosion#548325

<title>ent_explosion</title>⤶ ⤶ # ent_explosion⤶ ⤶ An entity that creates an explosion at its center.⤶ ⤶ In code, it is defined in the `ExplosionEntity.cs` file under `addons\base\code\Entity\Hammer\Effects`.⤶ ⤶ ## Keyvalues⤶ ⤶ **Name (`targetname`)** ⤶ ⤶ >* The name that other entities refer to this entity by.⤶ ⤶ **Tags (`tags`)** ⤶ ⤶ >* A list of general purpose tags for this entity, for interactions with other entities such as triggers.⤶ ⤶ **Radius (`radius`)**⤶ ⤶ >* Radius of the explosion.⤶ ⤶ **Damage (`Damage`)**⤶ ⤶ >* Damage the explosion should do at the center. The damage will reduce the farther the target is from the center of the explosion.⤶ ⤶ **Force Scale (`forcescale`)**⤶ ⤶ >* Scale explosion induced physics forces by this amount. ⤶ ⤶ **Particle Override (`particleoverride`)**⤶ ⤶ >* If set, will override the default explosion partile effect.⤶ ⤶ **Sound Override (`soundoverride`)**⤶ ⤶ >* If set, will override the default explosion sound.⤶ ⤶ **Remove On Explode (`removeonexplode`)**⤶ ⤶ >* Delete this entity when it is triggered via the Explode input?⤶