Skip to main content

env_spark

env_spark icon
Point entity

An env_spark makes sparks with a crackling sound, either at random times or when you trigger it.

Attributes​

The entity also has these common keys:

KeyDescriptionDefault
Nametargetname

Triggering the entity switches the sparks on or off with Toggle, or makes one spark with Cyclic. Without either flag, triggering it does nothing. See Common keys.

Move withSpirit of Half-Lifemovewith

Names the parent, an entity that this one moves and turns with. The entity keeps the place and the angles it has on the parent in the editor. If several entities have the name, the first one counts. A name ending in .1 to .4 puts a sprite or a model that isn't solid on that attachment point of the model of the parent. A solid brush on a parent that turns needs its own origin brush. Moving objects explains it all.

If you leave this key empty, the entity doesn't move with anything.

Axis locksparentflags

Keeps some of the entity's own position or angles instead of following the parent. Add up the values of the axes to keep: 2 for X, 4 for Y, 8 for Z, 16 for pitch, 32 for yaw and 64 for roll. So 112 keeps the entity level. 0 follows the parent on every axis.

Default 0
Max DelayMaxDelay

Sets the longest wait between two sparks, in seconds, and each wait is a random time up to it. With Cyclic, it sets how long after a spark the next trigger has to wait.

If you leave this key empty or set 0, the longest wait is 1.5 seconds, and with Cyclic there is no wait.

Default 0
Spark SilentFeaturefulspark_silent

Sets whether the sparks make a sound.

  • No (0) - The sparks crackle
  • Yes (1) - The sparks make no sound
Default No (0)
Spark Volume FactorFeaturefulspark_volume

Multiplies the volume of the spark sound, so 2 is twice as loud.

If you leave this key empty, the sound has its normal volume.

Sound radiusFeaturefulsoundradius

Sets how far players hear the spark sound.

  • Small (-2) - Up to about 500 units away
  • Medium (-1) - Up to about 800 units away
  • Default (0) - Up to about 1250 units away
  • Huge (1) - Up to about 2000 units away
  • Enormous (2) - Up to about 4000 units away
  • Play Everywhere (3) - Anywhere on the map, equally loud everywhere
Default Default (0)

Flags​

16CyclicFeatureful

Each trigger makes one spark. A trigger during the wait of Max Delay makes one more spark when the wait ends

32Toggle

Triggering the entity switches the sparks on and off. Without this flag, the entity makes sparks from the start of the map, and triggering it does nothing

64Start ON

With Toggle, the sparks are on when the map starts

See also​

Changes since 1.38​

  • You can use the new keys Spark Silent, Spark Volume Factor and Sound radius and the new flag Cyclic