M MY Multiplayer: Wiki
Side
Kind

getEffectColor

Shared

Reads an effect's colour.

int|false getEffectColor(effect effect)

Parameters

NameTypeDescription
effecteffectThe effect.

Returns

Four numbers r, g, b, a, from 0 to 255, or false with a wrong argument.

Example

local smoke = createEffect("smoke_flare", 0, 0, 3)
local r, g, b, a = getEffectColor(smoke)
outputDebugString(r .. ", " .. g .. ", " .. b .. ", " .. a) -- 255, 255, 255, 255

See also