SetUnitVertexColorBJ

Parameters
whichUnit unit

The unit which will be colored.

red real

An integer from 0-100 determining the amount of red color.

green real

An integer from 0-100 determining the amount of green color.

blue real

An integer from 0-100 determining the amount of blue color.

transparency real
comment

Sets the unit's color to the color defined by (red,green,blue,alpha).

return type
nothing
Source code
function SetUnitVertexColorBJ takes unit whichUnit, real red, real green, real blue, real transparency returns nothing
    call SetUnitVertexColor(whichUnit, PercentTo255(red), PercentTo255(green), PercentTo255(blue), PercentTo255(100.0-transparency))
endfunction
Source
Blizzard.j
wc3modding.com
SetUnitVertexColorBJ