env_beam

An env_beam draws a beam between two entities or two points, and it can also draw the beam as a ring.
With a Life of 0, the beam stays on and follows its entities when they move. With a Life above 0, the beam strikes again and again: each strike lasts Life seconds, and the next one comes Strike again time seconds after it.

A straight beam, a lightning bolt and a wider beam with Random Strike
Attributes
targetnameTriggering the entity turns the beam or its strikes on and off. Without a name, the beam is always on. See Common keys.
LightningStartNames the entity the beam starts at. If several entities have this name, each strike picks one of them at random. Without an Ending Entity, the beam strikes from this entity to a random spot within Radius.
LightningEndNames the entity the beam ends at. If several entities have this name, each strike picks one of them at random.
If you leave this key empty, the beam strikes from the Start Entity to a random spot within Radius.
renderfxSets an effect that the engine adds to how the entity is drawn. Most of them change how visible it is over time, and Glow Shell (19) draws a shell in the FX Color around a model.The 19 choices
Normal (0)renderamtSets how bright the beam is, from 1 for barely visible up to 255 for full brightness.
If you leave this key empty, it is 0 and you can't see the beam.
100rendercolorSets the color of the beam, as red, green and blue from 0 up to 255.
0 0 0RadiusSets how far, in units, the beam reaches for a random spot to strike when it has no Ending Entity. Without a Start Entity either, it strikes between two surfaces within this distance of the env_beam.
If you leave this key empty, it is 0 and the beam finds no spot to strike.
256lifeSets how many seconds each strike lasts, and 0 keeps the beam on until you turn it off.
If you leave this key empty, it is 0 and the beam stays on.
1BoltWidthSets how thick the beam is, in tenths of a unit from 0 up to 255, so 10 is one unit.
If you leave this key empty, it is 0 and you can't see the beam.
20NoiseAmplitudeSets how much the beam jitters, from 0 for a straight line up to 255 for a very jagged one.
0textureSets the sprite drawn along the beam.
If you leave this key empty, the entity is removed when the map starts.
sprites/laserbeam.sprTextureScrollSets how fast the sprite moves along the beam, from 0 for still up to 100 for fast.
If you leave this key empty, it is 0 and the sprite doesn't move.
35framerateSets how fast the sprite animates, as the number of frames it shows in 10 seconds, and 0 means it doesn't animate.
0framestartSets the frame of the sprite the beam starts with.
0StrikeTimeWith a Life above 0, sets how many seconds pass between the end of one strike and the start of the next. With Random Strike, it is the longest time, and each wait is random.
If you leave this key empty, it is 0 and each strike follows the last one at once.
1damageSets how much damage the beam deals per second to what it touches. A beam with a Life above 0 deals this amount once at each strike.
0Flags
1Start OnA beam with a Name is on when the map starts. A beam without a name is always on
2ToggleWith a Life above 0, every trigger starts or stops the strikes. Without this flag, only the first trigger starts or stops them, and later triggers do nothing
4Random StrikeThe time between strikes is random, from 0 up to Strike again time
8RingThe beam is drawn as a ring, and the line from the Start Entity to the Ending Entity goes across its middle. Both must be entities with a model, such as brush entities or monsters, or the ring isn't drawn
16StartSparksSparks fly at the start of the beam each time it strikes or turns on
32EndSparksSparks fly at the end of the beam each time it strikes or turns on
64Decal EndA beam that deals damage leaves a large bullet-hole decal where it hits a wall or a brush entity
128Shade StartA beam with a Life of 0 fades out toward its start. If you set both shade flags, only this one works
256Shade EndA beam with a Life of 0 fades out toward its end
A beam with a Life of 0 is drawn solid, like a ribbon. Without this flag, its colors are added to what is behind it
See also
env_laser- a beam that ends where it hits a walllocus_beam- a beam between positions that other entities work outenv_beamtrail- a trail behind a moving entity- env_beam on TWHL - the Half-Life entity
Changes since 1.38
- You can use the new flags Draw Solid, Draw Sine and No Camera Punch
