M MY Multiplayer: Wiki
Side
Kind

setEffectScale

Shared

Changes an effect's size.

bool setEffectScale(effect effect, float scale)

Parameters

NameTypeDescription
effecteffectThe effect.
scalefloatScale, 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)

See also