GPU Particles

self:is_one_shot

Client

Checks whether the emitter emits a single cycle and then stops

Syntax

local result = self:is_one_shot()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
boolresulttrue if the emitter is one-shot, false otherwise

Examples

Check whether an emitter is one-shot
local entity = particle.gpu.create()

core.engine.print("info", entity:is_one_shot())

On this page