SparkSpawnFrames
How many frames a spark system goes on throwing bursts for.
- Applies to
- ParticleSystemType
- File
rules.ini- Section
[<ObjectType ID>]- Value
- integer
- When omitted
0
A Spark system can throw bursts for this many frames. The count drops by one each frame. When it reaches zero, the system stops throwing bursts and is removed once its last particle has expired. Only the Spark behavior reads it.
On every frame but the last, the system throws a burst only if its SpawnSparkPercentage roll succeeds. The last frame always throws one, so 1 gives exactly one burst.
[MyWeldingSys] ; a ParticleSystemType registered in [ParticleSystems]BehavesLike=SparkHoldsWhat=MyWeldingSpark ; a ParticleType registered in [Particles]ParticleCap=25SparkSpawnFrames=20SpawnSparkPercentage=.4LightSize=25OneFrameLight=trueA longer count does not give a longer flash. The flash described under LightSize can appear only on the system’s first frame, and only if that frame throws a burst. The OneFrameLight glow that the example uses instead is drawn for as long as the system holds any particle, so it can continue after the last burst.