← Documentation Home

SetParticleLife

Category: Particle Effects (Pro)

Back to System Functions


Signature

SetParticleLife(system As Integer, minimum As Double, maximum As Double)

Returns

Void

Description

Sets the randomly selected lifetime range, in seconds, for newly emitted particles.

Performance and behavior

Existing particles keep their original lifetime. The default range is 1 second.

Pro feature: compiling code that uses this function requires a license with the GamePhysics feature enabled.

Example

SetParticleLife particles, 0.4, 1.2