Skip to content

LightSize

How strong a light a particle system casts.

Specification
Applies to
ParticleSystemType
File
rules.ini
Section
[<ObjectType ID>]
Value
integer
When omitted
0

The figure is a strength, not a distance: it scales the brightness the glow is drawn at, with 64 leaving it at its natural level, so the stock systems’ 21 and 25 land at roughly a third of that. Zero or below casts no light at all.

rules.ini
[MyWeldingSys] ; a ParticleSystemType registered in [ParticleSystems]
BehavesLike=Spark
HoldsWhat=MyWeldingSpark ; a ParticleType registered in [Particles]
ParticleCap=25
SparkSpawnFrames=20
LightSize=25
OneFrameLight=true

There are two lights, and OneFrameLight chooses between them. With the flag set, the glow is drawn afresh on every frame the system holds a particle, at this strength scaled by how full the system is against ParticleCap; a system of any behavior can carry one. Without the flag, a single glow is thrown at this strength when a Spark system’s first frame bursts, and it spreads and burns out over the next ten frames on its own; that one is drawn only at the highest detail setting, and only the Spark behavior casts it.