Env effectscript: Difference between revisions
Jump to navigation
Jump to search
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.) |
(-class hierarchy) |
||
Line 1: | Line 1: | ||
<!-- When this page is updated to {{langsp}} or {{langsp}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. -->{{lang|Env effectscript}}{{CD|CEnvEffectsScript}} | <!-- When this page is updated to {{langsp}} or {{langsp}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. -->{{lang|Env effectscript}}{{CD|CEnvEffectsScript|file1=1}} | ||
{{this is a|point entity|name=env_effectscript}} It allows scripting special visual effects via a script file. Two are used in {{ent|d1_trainstation_05}}{{hl2}}. | {{this is a|point entity|name=env_effectscript}} It allows scripting special visual effects via a script file. Two are used in {{ent|d1_trainstation_05}}{{hl2}}. | ||
==Keyvalues== | ==Keyvalues== | ||
{{KV Targetname}} | |||
{{KV|Script Model|intn=model|studio|Model to use for animation sequences. Defaults to <code>models/Effects/teleporttrail.mdl</code>.}} | {{KV|Script Model|intn=model|studio|Model to use for animation sequences. Defaults to <code>models/Effects/teleporttrail.mdl</code>.}} | ||
{{KV|Script File|intn=scriptfile|string|Name of the script to use for this model. Defaults to <code>scripts/effects/testeffect.txt</code>.}} | {{KV|Script File|intn=scriptfile|string|Name of the script to use for this model. Defaults to <code>scripts/effects/testeffect.txt</code>.}} | ||
==Inputs== | ==Inputs== |
Revision as of 13:58, 2 July 2024
![]() |
---|
CEnvEffectsScript |
![]() |
env_effectscript
is a point entity available in all Source games. It allows scripting special visual effects via a script file. Two are used in d1_trainstation_05
.
Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- 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
.
Inputs
- SetSequence <string >
- Sets the script model's sequence.