Experimental

An early preview: docs, the API and the dashboard may change or break.

Report a problem

effects.Emitter

An emitter effects.emitter started. It stops on its own when its duration ends or what it follows is gone.

Fields

emitter.alive: boolean
#
read only

whether it still bursts

Methods

emitter:moveTo(at: vector | types.Entity | types.Player)
#

bursts at a new position, or follows an entity or player, instead of its points

emitter:setPoints(points: { effects.EmitterPoint })
#

bursts at these points instead of where it was

emitter:stop()
#

stops bursting; it can't be started again