DestructableAddIndicatorBJ
- Parameters
-
whichDestructable destructable
The destructable 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 destructable 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 destructable's selection size. To modify this, you must edit the object editor field of the destructable listed as "Art - Selection Size".
- patch
1.00
- Source
- Blizzard.j
- return type
nothing
- Source code
function DestructableAddIndicatorBJ takes destructable whichDestructable, real red, real green, real blue, real transparency returns nothing call AddIndicator(whichDestructable, PercentTo255(red), PercentTo255(green), PercentTo255(blue), PercentTo255(100.0-transparency)) endfunction