SetAllyColorFilterState

Parameters
state integer

new state (only 0, 1, 2 are valid). See GetAllyColorFilterState for a description.

bug

You can set other states than 0-2, but they'll still display like state 0.

bug

(v1.32.10) You can permanently break this feature for a player if you set a large negative value.

Any negative value will display like state=0 and clicking the button will increase the state by 1. However if you set a very large negative value, the player will use the button to no avail. The issue here is that the value will be saved in player's game settings and persist forever, thus breaking this feature until a reinstall or until you set this to a sane value (0-2).

Using large positive values instantly reverts to state=0 after the first button click.

comment

Sets the player color display mode.

note

This is a player setting. Do not change it without a reason. Moreover this is an accessibility setting that may be used by visually impaired players.

note

See: GetAllyColorFilterState for full description; EnableMinimapFilterButtons.

return type
nothing
Source code
native SetAllyColorFilterState      takes integer state returns nothing
Source
common.j
wc3modding.com
SetAllyColorFilterState