NiPSysSpawnModifier

From GECK
Jump to: navigation, search

NiPSysSpawnModifier is a modifier for particle systems that spawns a number of new particles with the attributes of old particles, as well as varied spawn speeds and lifespans over generations.

An example of a NiPSysSpawnModifier.

Its fields are:

  • Name: The name of the modifier.
  • Order: 1000 seems to be the only one used, it's an emitter related flag.
  • Target: The particle system you wish to affect.
  • Active: If the modifier is enabled. You can animate this value by specifying the name of the modifier as the Controller ID in a NiControllerSequence and using a NiPSysModifierActiveCtlr as a controller with a NiBoolTimelineInterpolator as the interpolator.
  • Num Spawn Generations: Determines how many times each particle is spawned.
  • Percentage Spawned: A 0-1 float percentage that determines how many particles are actually spawned each generation.
  • Min Num to Spawn: The minimum number of particles that spawn each generation if they pass the percentage check.
  • Max Num to Spawn: The maximum number of particles that spawn each generation.
  • Spawn Speed Variation: A 0-1 float that adds a level of randomness to the velocity of newly spawned particles.
  • Spawn Dir Variation: A 0-1 float that adds of a level of randomness to the initial direction of newly spawned particles.
  • Life Span: The initial lifespan of newly spawned particles in seconds.
  • Life Span Variation: Sets a second value to randomize the particle lifespan evenly between a range of the value of Life Span and this value.