Cleanup is going to take awhile, so the site is back up but editing has been disabled.
Env laser
From HalfLife 2 Knowledge Base
Contents |
[edit]
env_laser
Source(core) Point Entity
[edit]
description
An entity that creates a laser beam between itself and a given target.
[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
- Target of Laser LaserTarget(target_destination)
Name of entity, or entities, to strike at. The target is randomly chosen if there are multiple entities matching the given name. - Brightness (1 - 255) renderamt(integer) - default: 100
- Beam Color (R G B) rendercolor(color255) - default: 255 255 255
- Width of Beam width(float) - default: 2
The width of the laser beam, in pixels. - Amount of noise (0-255) NoiseAmplitude(integer) - 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 laser beam. - End Sprite EndSprite(sprite)
If specified, this sprite will be drawn at the end of the laser beam. - Texture Scroll Rate (0-100) TextureScroll(integer) - default: 35
Rate at which the beam texture should scroll along the beam. - Starting Frame framestart(integer) - default: 0
The frame to start the beam texture on. - Damage / second damage(string) - default: 100
How much damage this laser does. per second. to things it hits. - Dissolve Type dissolvetype(choices)
None- -1 - None
- 0 - Energy
- 1 - Heavy electrical
- 2 - Light electrical
[edit]
spawn flags
- 1: Start On - default: OFF
- 16: StartSparks - default: OFF
- 32: EndSparks - default: OFF
- 64: Decal End - 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 laser on. - TurnOff(void)
Turns the laser off. - Toggle(void)
Toggles the laser between on and off.
[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.
[edit]
related tutorials
Submit your tutorial for env_laser

