GPU Particles

self:get_randomness

Client

Retrieves how random the emission timing is

Syntax

local ratio = self:get_randomness()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
floatratioRandomness between 0 and 1

Examples

Get the emission randomness
local entity = particle.gpu.create()

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

On this page