ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. setParticleEmitterEnabled

Function

setParticleEmitterEnabled

Server and clientParticlesTrilogy Hub only

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.
enabledbool
true = releasing, false = paused.

Returns

true on success.

Example

bindKey("f", "down", function()
    setParticleEmitterEnabled(fire, not isParticleEmitterEnabled(fire))
end)

See also