Env effectscript: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Robot: fixing template case.)
Line 20: Line 20:
==Inputs==
==Inputs==
* {{i targetname}}
* {{i targetname}}
* {{i parentname}}
* {{I Parentname}}
* '''SetSequence <string>'''
* '''SetSequence <string>'''
: Sets the script model's sequence, starting the effect.
: Sets the script model's sequence, starting the effect.

Revision as of 19:31, 19 January 2009

Template:Wrongtitle Template:Base point

Entity Description

An entity that allows you to script special visual effects via a script file.

See also

Keyvalues

<studio> Script Model - Model to use for animation sequences. Defaulted to models/Effects/teleporttrail.mdl.
  • scriptfile
<string> Script File - Name of the script to use for this model. Defaulted to scripts/effects/testeffect.txt.

Inputs

Parentname:
SetParent <stringRedirectInput/string>
Move with this entity. See Entity Hierarchy (parenting).
SetParentAttachment <stringRedirectInput/string>
Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.
SetParentAttachmentMaintainOffset <stringRedirectInput/string>
As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
ClearParent
Removes this entity from the the movement hierarchy, leaving it free to move independently.
  • SetSequence <string>
Sets the script model's sequence, starting the effect.

Outputs