BlzSetSpecialEffectColor

Parameters
whichEffecteffect
rinteger

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

ginteger

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

binteger

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 (raise an issue to discuss on Github or submit a PR)
return type
nothing
Source code
native BlzSetSpecialEffectColor                    takes effect whichEffect, integer r, integer g, integer b returns nothing