new state (only 0, 1, 2 are valid). See
GetAllyColorFilterStatefor a description.
(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.
You can set other states than 0-2, but they'll still display like state 0.
Sets the player color display mode.
GetAllyColorFilterStatefor full description;
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.
- return type
- Source code
native SetAllyColorFilterState takes integer state returns nothing