GPU Particles
self:burst
ClientEmits a single cycle of particles
Syntax
local status = self:burst()Fire-and-forget effects need cleaning up.
- Listen for
particle:finishedand callself:destroyfrom it — it fires once every particle of the cycle is gone. particle:emitfires as soon as the burst starts.- Switches the emitter to one-shot, so it plays a single cycle and then stops.
Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = particle.gpu.create()
entity:set_one_shot(true)
entity:burst()local entity = particle.gpu.create()
util.event.on("particle:finished", function(emitter)
emitter:destroy()
end)
entity:burst()