GPU Particles
self:set_amount
ClientSets the number of particles emitted per cycle
Syntax
local status = self:set_amount(
amount
)Changing the amount restarts the emitter.
- All live particles are cleared when the amount changes.
Parameters
| Type | Name | Description |
|---|---|---|
int | amount | Number of particles, at least 1 |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
local entity = particle.gpu.create()
entity:set_amount(60)