env_spark
Jump to navigation
Jump to search
Code classes:
CEnvSpark
CPointEntity
CBaseEntity
(all ents)
env_spark
is a point entity present in all Source games. It is used to create sparks at its origin.
Note: has an asw_env_spark
entity which fits better with the game's visual style.
Flags[edit | edit source]
- 64: Start ON
- 128: Glow
- 256: Silent
- 512: Directional
Keyvalues[edit | edit source]
- Max Delay
(MaxDelay)
<float>
- The longest delay between sparks (in seconds). If this value is changed with AddOutput, the change will only take effect after the entity sparks again.
- Magnitude
(Magnitude)
<int>
- The amount of the sparks.
- 1: Small
- 2: Medium
- 5: Large
- 8: Huge
- Spark Trail Length
(TrailLength)
<int>
- Length of the spark trails. Other numbers may be entered to create extremely long or short trails.
- 1: Short
- 2: Medium
- 3: Long
Inputs[edit | edit source]
- StartSpark
- Start the spark effect.
- StopSpark
- Stop the spark effect.
- ToggleSpark
- Toggle the on/off state of the spark effect.
- SparkOnce
- Spark once.
Outputs[edit | edit source]
- OnSpark (Not in FGD)
- Fired when the sparks emit.