M MY Multiplayer: Wiki
Side
Kind

getEffectEvolution

Shared

Reads the level of one of an effect's evolutions.

float|false getEffectEvolution(effect effect, string name)

Parameters

NameTypeDescription
effecteffectThe effect.
namestringThe evolution's name. Case does not matter.

Returns

The level, or false if that evolution was never set with setEffectEvolution, or with a wrong argument.

Example

local fire = createEffect("fire_large", 0, 0, 3)
setEffectEvolution(fire, "strength", 0.3)
outputDebugString(getEffectEvolution(fire, "STRENGTH")) -- 0.3

See also