GPU Particles

self:set_explosiveness

Client

Sets how much of the emission happens at once

Syntax

local status = self:set_explosiveness(
    ratio
)

Parameters

TypeNameDescription
floatratioExplosiveness between 0 (steady stream) and 1 (every particle at once)

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Emit every particle at once
local entity = particle.gpu.create()

entity:set_explosiveness(1)

On this page