Function SetAllyColorFilterState

  • Sets the player color display mode.

    Parameters

    • state: number

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

    Returns void

    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=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.

    Note

    See: GetAllyColorFilterState for full description; EnableMinimapFilterButtons.

Generated using TypeDoc