{"name":"BIS_fnc_teamColor","operator":null,"title":"BIS fnc teamColor","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_teamColor","revid":377980,"updated":"2026-01-19T20:38:21Z","groups":["Object Manipulation"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Convert number to color team name or color.","syntaxes":[{"syntax":"[teamId, getColour] call BIS_fnc_teamColor","since":null,"effect":null,"exec":null,"params":[{"name":"teamId","type":"Number","optional":false,"default":null,"description":"in range 1..5","types":["Number"],"since":null,"text":"teamId: Number - in range 1..5"},{"name":"getColour","type":"Boolean","optional":true,"default":"false","description":"true to get Color (RGBA), false to get the *localised* team name","types":["Boolean"],"since":null,"text":"getColour: Boolean - (Optional, default false) true to get Color (RGBA), false to get the *localised* team name"}],"returns":{"type":"Color (RGBA) or String","types":["Color","String"],"description":"color format [r, g, b, a] or localised team name","text":"Color (RGBA) or String - color format [r, g, b, a] or localised team name"}}],"examples":[{"text":"```sqf\n_colour = [2, true] call BIS_fnc_teamColor;\n```","code":["_colour = [2, true] call BIS_fnc_teamColor;"]},{"text":"```sqf\n_teamName = [2] call BIS_fnc_teamColor;\nhint format [\"%1 is %2\", 2, _teamName];\n```","code":["_teamName = [2] call BIS_fnc_teamColor;\nhint format [\"%1 is %2\", 2, _teamName];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_colorConfigToRGBA","BIS_fnc_colorRGBAtoHTML"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Object Manipulation","Functions","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}