setEffectScale
Shared
Changes an effect's size.
bool setEffectScale(effect effect, float scale)
Parameters
| Name | Type | Description |
|---|---|---|
| effect | effect | The effect. |
| scale | float | Scale, a finite number above 0. 1 is the original size. |
Returns
true if it changed. false with a wrong argument (logs a warning).
On the server, the change reaches every client. On a client, changing an effect the server created only holds on this client until the server sends its state again.
Example
local fire = createEffect("fire", 2495.1, -1687.4, 13.5)
setEffectScale(fire, 2.5)