BlzSetSpecialEffectColor

Parameters
whichEffect effect
r integer

only accepts values 0-255 (no light - fully lit)

g integer

only accepts values 0-255 (no light - fully lit)

b integer

only accepts values 0-255 (no light - fully lit)

comment

Sets the vertex colors of the special effect.

Example (Lua):

The question mark (SD) model is excellent for experimentation, because it is completely white.

If we remove the green channel, it will appear pink/magenta (red+blue). Setting all channels to 0 will produce a black model.

questionMark = AddSpecialEffect([[objects\randomobject\randomobject.mdx]], -128, 0)
BlzSetSpecialEffectColor(questionMark, 255,0,255)
note

Does nothing if any single parameter is invalid or out of range.

note

See: Similar to how SetUnitVertexColor works. Not to be confused with BlzSetSpecialEffectColorByPlayer (tinting color)

patch

1.29.2.9231

Source
common.j
return type
nothing
Source code
native BlzSetSpecialEffectColor                    takes effect whichEffect, integer r, integer g, integer b returns nothing