- Documentation
- Shared functions
- setParticleEmitterEnabled
Function
setParticleEmitterEnabled
Starts or pauses releasing new particles. A disabled emitter lets the particles already released live out their life; enabling it again restarts the duration time.
Syntax
bool setParticleEmitterEnabled(element emitter, bool enabled)Arguments
emitterelement- The emitter.
enabledbooltrue= releasing,false= paused.
Returns
true on success.
Example
bindKey("f", "down", function()
setParticleEmitterEnabled(fire, not isParticleEmitterEnabled(fire))
end)