engineSetParticleDensity
Client
Sets the fraction of effect particles that are emitted. The rest are dropped at random.
bool engineSetParticleDensity(float density)
Parameters
| Name | Type | Description |
|---|---|---|
| density | float | From 0 (none) to 1 (all). The default is 1. Anything else raises an error. |
Returns
Always true.
The setting applies to the whole client and stays after the resource stops.
Example
engineSetParticleDensity(0.5)