GetAllyColorFilterState
- comment
Returns the currently chosen player color display mode.
This is called "ally color mode" by the game (hotkey: Alt+A).
0
aka "Mode 1" (default):- Minimap: Player colors, youself are white
- World: Unit colors same as player color
1
aka "Mode 2":- Minimap: Allies are teal, enemies are red, yourself are white
- World: Unit colors same as player color
2
aka "Mode 3":- Minimap: Allies are teal, enemies are red, yourself are white
- World: Allies are teal, enemies are red, own units are blue
- note
See:
SetAllyColorFilterState
- note
This setting affects how a unit's "Art - Team Color" (WE name) is displayed. If the models you use rely on this color to match player color, you can choose to force state=0 with
SetAllyColorFilterState
.- async
- This function is asynchronous. The values it returns are not guaranteed to be the same for each player. If you attempt to use it in an synchronous manner it may cause a desync.
- patch
1.07
- Source
- common.j
- return type
integer
- Source code
native GetAllyColorFilterState takes nothing returns integer