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

env_particlescript

From Valve Developer Community
Jump to navigation Jump to search
English (en)Translate (Translate)
Class hierarchy
CEnvParticleScript
CBaseAnimating
CBaseEntity
env_particlescript.cpp
Note.pngNote:Using info_particle_system is preferred.

env_particlescript is a model entity available in all Source Source games. It is an entity used for creating sprites attached to the specified model's attachments. It uses 2 animation events for creating and deleting these sprites : CL_EVENT_SPRITEGROUP_CREATE (6002) and CL_EVENT_SPRITEGROUP_DESTROY (6003). In Half-Life 2, it is used for simulating hundreds of scanners leaving the Citadel in d1_trainstation_06.


Example QC snippet from Fileambient_citadel_paths.mdl 

Keyvalues

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

Script Model (model) <model path>
Model to use for animation sequences.

Inputs

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