GPU Particles
self:set_one_shot
ClientSets whether the emitter emits a single cycle and then stops
Syntax
local status = self:set_one_shot(
state
)Parameters
| Type | Name | Description |
|---|---|---|
bool | state | true to emit a single cycle, false to emit continuously |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = particle.gpu.create()
entity:set_one_shot(true)