Env beam

From Valve Developer Community
Revision as of 17:04, 16 August 2005 by Ts2do (talk | contribs)
Jump to navigation Jump to search

Template:Wrongtitle

Entity Description

An entity that creates a visible beam between two points. The points can be attached to entities to make the beam move around.

Keyvalues

<choices>
  • renderamt
<byte> Useless when set to 0
  • rendercolor
#000000 Beam Color (R G B)
  • Radius
<integer> If the 'Random Strike' spawnflag is set, this radius determines the area within which the endpoints will randomly strike.
  • life
<unsigned integer> Amount of time before the beam dies. Setting to zero will make the beam stay forever.
  • BoltWidth
<float> Width of the beam. Range: 1 to MAX_BEAM_WIDTH
  • NoiseAmplitude
<float> The amount of noise in the beam. 0 is a perfectly straight beam. Range: 0 to MAX_BEAM_NOISEAMPLITUDE
  • texture
<sprite> The material used to draw the beam.
  • TextureScroll
<integer> Rate at which the beam texture should scroll along the beam. Range: 0 to MAX_BEAM_SCROLLSPEED
  • framerate
<integer> Framerate at which the beam texture should animate, if it has multiple frames.
  • framestart
<integer> The frame to start the beam texture on.
  • StrikeTime
<float> Refire time between random strikes of the beam. Only used if the 'Random Strike' spawnflag is set.
  • damage
<float> How much damage this beam does per second to things it hits when it is continually on, or instantaneously if it strikes. For continuous damage, the value should be greater than 10 or it may not work.
  • LightningStart
<target_destination> Entity that the beam starts at.
  • LightningEnd
<target_destination> Entity that the beam ends at.
  • TouchType
<choices> If you want the beam to fire an output when touched by entities, choose the entity type here.
Literal Value Description
0 Not a tripwire
1 Player Only
2 NPC Only
3 Player or NPC
4 Player or NPC or Physprop
  • filtername
<filterclass> Filter to use to see if activator triggers me. See filter_activator_name for more explanation.

Inputs

Turns the beam on.
  • TurnOff
Turns the beam off.
  • Toggle
Toggles the beam's state.
  • StrikeOnce
Causes the beam to strike once. It will stay on for its set Life and then turn off (it will never turn off if Life is set to zero).
  • Alpha <integer>
Sets the renderamt
  • Color #000000
Sets the rendercolor
  • Amplitude <float>
Set the NoiseAmplitude
  • ScrollSpeed <float>
Set the TextureScroll
  • Width <float>
Set the BoltWidth

Outputs

Fired when an entity touches the beam. Only fired if the entity passes the 'Touch Type' choice. Check out Targetname read up on how to trigger the activator.

See Also