Skip to content

MaxEC

The base lifetime of a particle, in frames.

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

A particle lives for MaxEC frames plus a random extra, and is removed when that time runs out. For most behaviors the extra is from 0 to one frame less than MaxEC, so a particle lives between MaxEC and nearly twice MaxEC frames. For a Railgun particle the extra is 0 to 9 frames. At fifteen frames a second, MaxEC=900 gives most particles one to two minutes. Because the extra varies, a cloud created in one burst thins out gradually.

A particle can end before its lifetime runs out, for example through DeleteOnStateLimit or by rising into a bridge deck. In gas, weak gas, web and smoke particle systems, a particle is replaced by its NextParticle successors however it ends. Particles removed along with their system get none.