# SetParticlesLife

## Description

Sets the life of particles once they have been emitted in seconds. After particles have been alive for the given number of seconds they will disappear. This is one of the two values that affects the number of particles generated, the other being SetParticlesFrequency. The maximum number of particles that can be on screen at any one time is freq*life, with freq being the number of particles emitted per second. This value is independent of frame rate.

## Definition

SetParticlesLife( ID, time )

void agk::SetParticlesLife( UINT ID, float time )

## Parameters

- ID - The ID of the emitter to modify.
- time - The time in seconds that a particle is visible.