GPU Particles

self:set_randomness

Client

Sets how random the emission timing is

Syntax

local status = self:set_randomness(
    ratio
)

Parameters

TypeNameDescription
floatratioRandomness between 0 and 1

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Randomize the emission timing
local entity = particle.gpu.create()

entity:set_randomness(0.5)

On this page