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

env_effectscript

From Valve Developer Community
Revision as of 16:47, 17 May 2024 by PeeBot (talk | contribs) (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
Jump to navigation Jump to search
English (en)中文 (zh)Translate (Translate)
C++ 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.

C++ 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.
Name (targetname) <string>[ Edit ]
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

Inputs

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

See also