SetUnitColor

Parameters
whichUnit unit

Unit to modify.

whichColor playercolor

Set to this player's color.

bug

Visual bug (tested v1.32.10): if you create two units of the same type (Normal and Colored) and set Colored's color to a different color, then clicking between the two units will not change the portrait color. The portrait will only update correctly if you deselect the unit.

comment

Sets a unit's player color accent.

return type
nothing
Source code
native          SetUnitColor        takes unit whichUnit, playercolor whichColor returns nothing
Source
common.j
wc3modding.com
SetUnitColor