StartStateAI
The animation state a particle is created at.
- Applies to
- ParticleType
- File
rules.ini- Section
[<ObjectType ID>]- Value
- integer
- When omitted
0
A particle’s state doubles as the frame of its artwork that is drawn, so this is both where the sequence begins and which frame appears the first time the particle is visible. A Fire particle offsets that frame by the artwork bank its firing direction picks, and Spark and Railgun particles draw no artwork at all. The state is held in one signed byte, so a value above 127 wraps negative.
Smoke and Fire particles only advance while the state is below EndStateAI, so starting at or above the end freezes the sequence for the particle’s whole life — and with it the DeleteOnStateLimit death and the Translucent25State and Translucent50State fades, none of which are ever reached. Gas, WeakGas and Web particles advance regardless of where they started, and when they wrap they restart at state 0 rather than at this one, so a type that starts partway into its sequence plays the opening frames on every loop after the first.