Env spark: Difference between revisions
Jump to navigation
Jump to search

mNo edit summary |
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.) |
||
Line 1: | Line 1: | ||
{{lang|Env spark}} | {{lang|Env spark}} | ||
[[File:env_spark.jpg|thumb|200px|right|<code>env_spark</code> with directional, glowing medium-sized sparks. By default, the sparks jump up a bit from the origin of the entity, so if you are attempting to create a sparks like this, you must use the ''Directional'' flag and point the entity downwards.]] | [[File:env_spark.jpg|thumb|200px|right|<code>env_spark</code> with directional, glowing medium-sized sparks. By default, the sparks jump up a bit from the origin of the entity, so if you are attempting to create a sparks like this, you must use the ''Directional'' flag and point the entity downwards.]] | ||
{{ | {{this is a|point entity|name=env_spark|sprite=1}} It is used to create sparks at its origin. | ||
{{code class|CEnvSpark|EnvSpark.cpp}} | {{code class|CEnvSpark|EnvSpark.cpp}} |
Revision as of 16:39, 17 May 2024



env_spark
is a point entity available in all Source games. It is used to create sparks at its origin.
Flags
- 64: Start ON
- 128: Glow
- 256: Silent
- 512: Directional
Keyvalues
- Max Delay (MaxDelay) <string>
- 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) <choices>
- The amount of the sparks.
- 1: Small
- 2: Medium
- 5: Large
- 8: Huge
- Spark Trail Length (TrailLength) <choices>
- Length of the spark trails. Other numbers may be entered to create extremely long or short trails.
- 1: Short
- 2: Medium
- 3: Long
Inputs
- StartSpark
- Start the spark effect.
- StopSpark
- Stop the spark effect.
- ToggleSpark
- Toggle the on/off state of the spark effect.
- SparkOnce
- Spark once.
Outputs
- OnSpark !FGD
- Fired when the sparks emit.