env_explosion

Modified

12-Jul-2023

Point entity which, when triggered, creates an explosion which damages everything damageable around it.

Keyvalues


OnDestroy Function ondestroyfn : Name of the function to use from already parsed .as script files when entity is destroyed (killed) in any way. If the function belongs to namespace, you must use prefix with the namespace name (e.g. mynamespace::MyFunction) for the keyvalue.

Name targetname : Set name of env_explosion so other entities can trigger it to create explosion. Every trigger use-type works uniformly. Can be kill-targeted.

Magnitude iMagnitude : Explosion magnitude. Greater values mean bigger explosion size and damage. Note that explosion damage values above 200 are known to cause damage even through walls.

Flags


  • 1 : No Damage : If set, the explosion deals no damage.

  • 2 : Repeatable : If set, the env_explosion entity won't be removed after being triggered, so you can use it again.

  • 4 : No Fireball : If set, the explosion shows no fireball.

  • 8 : No Smoke : If set, the explosion shows no smoke.

  • 16 : No Decal : If set, the explosion causes no decal.

  • 32 : No Sparks : If set, the explosion creates no sparks.