env_spritetrail

From Source Entities
Jump to navigation Jump to search
Env spritetrail.png

Code classes:

env_spritetrail is a point entity present in all Source games. It creates a fading beam when it moves (by parenting).

Keyvalues[edit | edit source]

Lifetime (lifetime) <float>
How long the beam lasts. Trails with a longer lifetime will draw less precise paths.
Start Width (startwidth) <float>
The width of the beam at the beginning.
End Width (endwidth) <float>
The width of the beam segment at the end of its lifetime.
Sprite Name (spritename) <string>
The material to draw. The entity will only use the top row of pixels for the trail.
Animated (Not in FGD) (animate) <bool>
To do: Tells the sprite to animate if it can? Has never been seen working.
Editors: 
I've not been able to get sprites to animate with this, but that might be due to all such testing being done with hl2 fire sprites...