SetAllyColorFilterState
- Parameters
state integernew state (only 0, 1, 2 are valid). See
GetAllyColorFilterStatefor a description.- 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.
- 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=0and 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=0after the first button click.- note
See:
GetAllyColorFilterStatefor full description;EnableMinimapFilterButtons.- patch
1.07
- Source
- common.j (suggest an edit or discuss on Github)
- return type
nothing- Source code
native SetAllyColorFilterState takes integer state returns nothing