# Set3DParticlesMax

## Description

Sets the maximum number of particles that will be emitted. If this value is equal to -1 then the number is infinite. The emitter will keep a count of the total number of particles it emits and stop when the limit is reached. To check if the emitter has reached its limit use Get3DParticlesMaxReached. To reset the count and make it start emitting again use Reset3DParticleCount.

## Definition

Set3DParticlesMax( ID, max )

void agk::Set3DParticlesMax( UINT ID, int max )

## Parameters

- ID - The ID of the emitter to modify.
- max - The maximum number of particles to emit