This article's documentation is for anything that uses the Source engine. Click here for more information.

env_effectscript

From Valve Developer Community
Jump to: navigation, search
English (en)中文 (zh)
... Icon-Important.png
class hierarchy
CEnvEffectsScript
CBaseAnimating
CBaseEntity

env_effectscript is a point entity available in all Source Source games. It allows scripting special visual effects via a script file. Two are used in d1_trainstation_05Half-Life 2.


In code, it is represented by theCEnvEffectsScriptclass, defined in theenv_effectsscript.cppfile.

Keyvalues

Script Model (model) <model path>
Model to use for animation sequences. Defaults to models/Effects/teleporttrail.mdl.
Script File (scriptfile) <string>
Name of the script to use for this model. Defaults to scripts/effects/testeffect.txt.

Targetname:
Name (targetname) <string>
The targetname that other entities refer to this entity by.

Inputs

SetSequence <string>
Sets the script model's sequence.

See also