LuaAPI: Add graph warning for SetClanColor
authorWuzzy
Mon, 01 Apr 2019 23:23:43 +0100
changeset 1711 d2397947f3d7
parent 1710 f99ab21a3e34
child 1712 047fe82b6627
LuaAPI: Add graph warning for SetClanColor
LuaAPI.wiki
--- a/LuaAPI.wiki	Tue Jan 29 10:48:22 2019 -0500
+++ b/LuaAPI.wiki	Mon Apr 01 23:23:43 2019 +0100
@@ -1447,7 +1447,9 @@
 Returns the RGBA color of the chosen clan by its number. The color data type is described in [LuaAPI#Color].
 
 ==== <tt>!SetClanColor(clan, color)</tt> ====
-Sets the RGBA color of the chosen clan by its number. The color data type is described in [LuaAPI#Color]. The new clan color *must* be different from the color of all clans.
+Sets the RGBA color of the chosen clan by its number. The color data type is described in [LuaAPI#Color]. The new clan color *must* be different from the color of all clans (you can't use this function to change clan memberships of teams).
+
+Note: The stats graph does not support changing clan colors. If the clan colors change in mid-game, the graph might get confused and shows weird stuff. You may want to turn off the graph with if this is the case (see `SendHealthStatsOff`).
 
 === Campaign management ===
 ==== <tt>!SaveCampaignVar(varname, value)</tt> ====