GPU Particles
self:restart
ClientRestarts the emitter, clearing every live particle
Syntax
local status = self:restart()Fires particle:emit as the new cycle starts.
- Fires on every call, even if the emitter was already emitting, because a new cycle begins each time.
- Every live particle is cleared and the cycle starts again from the beginning.
- Use it to replay a one-shot emitter straight after
particle:finished.
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:emit()
entity:restart()