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

An integer from 0-100 determining the transparency. A value of 100 is complete transparency while a value of 0 is complete opacity.

comment

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

patch

1.00

Source
Blizzard.j
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