Cleanup is going to take awhile, so the site is back up but editing has been disabled.
Env beam
From HalfLife 2 Knowledge Base
Contents |
[edit]
env_beam
Source(core) Point Entity
[edit]
description
An entity that creates a visible beam between two points. The points can be attached to entities to make the beam move around.
[edit]
properties
- Name targetname(target_source)
The name that other entities refer to this entity by. - Parent parentname(target_destination)
The name of this entity's parent in the movement hierarchy. Entities with parents move with their parent. - Render FX renderfx(choices)
- 0 - Normal
- 1 - Slow Pulse
- 2 - Fast Pulse
- 3 - Slow Wide Pulse
- 4 - Fast Wide Pulse
- 9 - Slow Strobe
- 10 - Fast Strobe
- 11 - Faster Strobe
- 12 - Slow Flicker
- 13 - Fast Flicker
- 5 - Slow Fade Away
- 6 - Fast Fade Away
- 7 - Slow Become Solid
- 8 - Fast Become Solid
- 14 - Constant Glow
- 15 - Distort
- 16 - Hologram (Distort + fade)
- 23 - Cull By Distance (TEST)
- 24 - Spotlight FX
- 26 - Fade Near
- Brightness (1 - 255) renderamt(integer) - default: 100
- Beam Color (R G B) rendercolor(color255) - default: 255 255 255
- Radius Radius(integer) - default: 256
If the 'Random Strike' spawnflag is set, this radius determines the area within which the endpoints will randomly strike. - Life (seconds 0 = infinite) life(string) - default: 1
Amount of time before the beam dies. Setting to zero will make the beam stay forever. - Width of beam BoltWidth(float) - default: 2
Pixel width of the beam. - Amount of noise (0-255) NoiseAmplitude(float) - default: 0
The amount of noise in the beam. 0 is a perfectly straight beam. - Sprite Name texture(sprite) - default: sprites/laserbeam.spr
The material used to draw the beam. - Texture Scroll Rate (0-100) TextureScroll(integer) - default: 35
Rate at which the beam texture should scroll along the beam. - Frames per 10 seconds framerate(integer) - default: 0
Framerate at which the beam texture should animate, if it has multiple frames. - Starting Frame framestart(integer) - default: 0
The frame to start the beam texture on. - Strike again time (secs) StrikeTime(string) - default: 1
Refire time between random strikes of the beam. Only used if the 'Random Strike' spawnflag is set. - Damage / second damage(string) - default: 0
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. - Start Entity LightningStart(target_destination)
Entity that the beam starts at. - Ending Entity LightningEnd(target_destination)
Entity that the beam ends at. - Touch Type (tripwire) TouchType(choices) - default: If you want the beam to fire an output when touched by entities, choose the entity type here.
- 0 - Not a tripwire
- 1 - Player Only
- 2 - NPC Only
- 3 - Player or NPC
- 4 - Player or NPC or Physprop
- Filter Name filtername(filterclass)
Filter to use to see if activator triggers me. See filter_activator_name for more explanation.
[edit]
spawn flags
- 1: Start On - default: OFF
- 2: Toggle - default: OFF
- 4: Random Strike - default: OFF
- 8: Ring - default: OFF
- 16: StartSparks - default: OFF
- 32: EndSparks - default: OFF
- 64: Decal End - default: OFF
- 128: Shade Start - default: OFF
- 256: Shade End - default: OFF
- 512: Taper Out - default: OFF
[edit]
inputs
- Kill(void)
Removes this entity from the world. - KillHierarchy(void)
Removes this entity and all its children from the world. - AddOutput(string)
Adds an entity I/O connection to this entity. Format - FireUser1(void)
Causes this entity's OnUser1 output to be fired. - FireUser2(void)
Causes this entity's OnUser2 output to be fired. - FireUser3(void)
Causes this entity's OnUser3 output to be fired. - FireUser4(void)
Causes this entity's OnUser4 output to be fired. - SetParent(string)
Changes the entity's parent in the movement hierarchy. - SetParentAttachment(string)
Change this entity to attach to a specific attachment point on it's parent. Entities must be parented before being sent this input. The parameter passed in should be the name of the attachment. - ClearParent(void)
Removes this entity from the the movement hierarchy, leaving it free to move independently. - TurnOn(void)
Turns the beam on. - TurnOff(void)
Turns the beam off. - Toggle(void)
Toggles the beam between on and off. - StrikeOnce(void)
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 beam's alpha (0 - 255). - Color(color255)
Sets the beam's render color (R G B). - Amplitude(float)
Set the amplitude of beam noise (0 - 255). - ScrollSpeed(float)
Set the scroll speed in units per second (0 - 100). - Width(float)
Set the width of the beam, in pixels.
[edit]
outputs
- OnUser1(void)
Fired in response to FireUser1 input. - OnUser2(void)
Fired in response to FireUser2 input. - OnUser3(void)
Fired in response to FireUser3 input. - OnUser4(void)
Fired in response to FireUser4 input. - OnTouchedByEntity(void)
Fired when an entity touches the beam. Only fired if the entity passes the 'Touch Type' choice.
[edit]
related tutorials
Submit your tutorial for env_beam

