GPU Particles

self:set_speed_scale

Client

Sets the simulation speed multiplier of the emitter

Syntax

local status = self:set_speed_scale(
    scale
)

Parameters

TypeNameDescription
floatscaleSpeed scale, at least 0 — 1 is normal speed

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Run an emitter in slow motion
local entity = particle.gpu.create()

entity:set_speed_scale(0.5)

On this page