Skip to main content

env_beam

env_beam icon
Point entity

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.

Three env_beams that strike again and again: a straight beam, a lightning bolt with noise and a wider beam with Random Strike

A straight beam, a lightning bolt and a wider beam with Random Strike

Attributes​

KeyDescriptionDefault
Nametargetname

Triggering the entity turns the beam or its strikes on and off. Without a name, the beam is always on. See Common keys.

Start EntityLightningStart

Names 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.

Ending EntityLightningEnd

Names 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.

Render FXrenderfx

Sets 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)
  • Slow Pulse (1)
  • Fast Pulse (2)
  • Slow Wide Pulse (3)
  • Fast Wide Pulse (4)
  • Slow Strobe (9)
  • Fast Strobe (10)
  • Faster Strobe (11)
  • Slow Flicker (12)
  • Fast Flicker (13)
  • Slow Fade Away (5)
  • Fast Fade Away (6)
  • Slow Become Solid (7)
  • Fast Become Solid (8)
  • Constant Glow (14)
  • Distort (15)
  • Hologram (Distort + fade) (16)
  • Bulge Sideways (18)
  • Glow Shell (19)
Default Normal (0)
Brightnessrenderamt

Sets 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.

Default 100
Beam Colorrendercolor

Sets the color of the beam, as red, green and blue from 0 up to 255.

Default 0 0 0
RadiusRadius

Sets 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.

Default 256
Lifelife

Sets 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.

Default 1
Width of beamBoltWidth

Sets 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.

Default 20
Amount of noiseNoiseAmplitude

Sets how much the beam jitters, from 0 for a straight line up to 255 for a very jagged one.

Default 0
Sprite Nametexture

Sets the sprite drawn along the beam.

If you leave this key empty, the entity is removed when the map starts.

Default sprites/laserbeam.spr
Texture Scroll RateTextureScroll

Sets 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.

Default 35
Frames per 10 secondsframerate

Sets how fast the sprite animates, as the number of frames it shows in 10 seconds, and 0 means it doesn't animate.

Default 0
Starting Frameframestart

Sets the frame of the sprite the beam starts with.

Default 0
Strike again timeStrikeTime

With 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.

Default 1
Damage / seconddamage

Sets 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.

Default 0

Flags​

1Start On

A beam with a Name is on when the map starts. A beam without a name is always on

2Toggle

With 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 Strike

The time between strikes is random, from 0 up to Strike again time

8Ring

The 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

16StartSparks

Sparks fly at the start of the beam each time it strikes or turns on

32EndSparks

Sparks fly at the end of the beam each time it strikes or turns on

64Decal End

A beam that deals damage leaves a large bullet-hole decal where it hits a wall or a brush entity

128Shade Start

A beam with a Life of 0 fades out toward its start. If you set both shade flags, only this one works

256Shade End

A beam with a Life of 0 fades out toward its end

512Draw SolidFeatureful

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

1024Draw SineFeatureful

A beam with a Life of 0 is drawn as a wave

4096No Camera PunchFeatureful

A player the beam hurts doesn't have their view jerk

See also​

Changes since 1.38​

  • You can use the new flags Draw Solid, Draw Sine and No Camera Punch