UnitAddIndicatorBJ

Parameters
whichUnit unit

The unit the indicator will be applied to.

red real

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

green real

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

blue real

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

transparency real

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

comment

Adds a blinking circle around the unit with the color (red,green,blue,alpha). The circle blinks twice. This function is commonly used for cinematic modes and is seen in TransmissionFromUnitWithNameBJ.

note

The size of the indicator depends on a unit's selection size. To modify this, you must edit the object editor field of the unit listed as "Art - Selection Size".

patch

1.00

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