GPU Particles
self:set_randomness
ClientSets how random the emission timing is
Syntax
local status = self:set_randomness(
ratio
)Parameters
| Type | Name | Description |
|---|---|---|
float | ratio | Randomness between 0 and 1 |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = particle.gpu.create()
entity:set_randomness(0.5)