Description
Convert number to color team name or color.
Syntax
[teamId, getColour] call BIS_fnc_teamColor
Parameters:
teamId: Number - in range 1..5getColour: Boolean - (Optional, default false) true to get Color (RGBA), false to get the localised team name
Returns: Color (RGBA) or String - color format [r, g, b, a] or localised team name
Examples
Example 1
_colour = [2, true] call BIS_fnc_teamColor;
Example 2
_teamName = [2] call BIS_fnc_teamColor;
hint format ["%1 is %2", 2, _teamName];