1. Home
  2. Docs
  3. PopcornFX v2
  4. Scripting reference
  5. self

self

The self namespace contains all particle-related functions and variables.

 

Return typeDescription
floatself.lifeRatio
Life-ratio of the particle, in the [0, 1] range.
floatself.invLife
Inverse life of the particle: 1.0f / life.
voidself.kill(bool condition)
if condition is true, kills the particle this frame.
boolself.isDeterministic()
Returns true if the simulation for this particle is running in deterministic mode, false otherwise.
Was this article helpful to you? Yes No

How can we help?