env_tracer

From Valve Developer Community
Jump to navigation Jump to search
Icon-callout-not-in-fgd.png
This entity is not in the FGD by default.
See below for instructions on making it available.
C++ Class hierarchy
CEnvTracer
CPointEntity
CBaseEntity
C++ effects.cpp

env_tracer is a point entity available in all Source Source games.

Keyvalues

Name (targetname) <string>
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also: Generic Keyvalues, Inputs and Outputs available to all entities
Target (target) <targetname>
The target to fire the tracer at. Must be 256 or more units away from the env_tracer[citation needed].
Icon-Bug.pngBug:The tracer does not follow or update the target. The tracer always fires at its original position, even if the target is killed.  (tested in: SDK2013 source code)
Delay (delay) <float>
Default Value: 1
How long to wait before firing the tracer again, in seconds.

FGD Code

@PointClass base(Targetname, Parentname) size(-8 -8 -8, 8 8 8) = env_tracer : 
	"An entity that fires a thin tracer between itself and a target, with a specified delay."
[
	target(target_destination) : "Target" : : "The target to fire the tracer at. Must be 256 or more units away from the env_tracer."
	delay(float) : "Delay" : 1 : "How long to wait before firing the tracer again, in seconds. Defaults to 1 if set to 0."
]