_tex = _this select 0;

_camo = _this select 1;

switch (_this select 1) do 
{
	case "SLA" : 
	{
		_tex setObjectTexture [1,"\ch_t72\data\t-72\sla\t72_1_co.paa"];
		_tex setObjectTexture [2,"\ch_t72\data\t-72\sla\t72_2_co.paa"];
		_tex setObjectTexture [3,"\ch_t72\data\t-72\sla\t72_3_co.paa"];
		_tex setObjectTexture [4,"\ch_t72\data\t-72\sla\t72_4_co.paa"];
		_tex setObjectTexture [5,"\ch_t72\data\t-72\sla\t72_track_co.paa"];
	};

	case "Soviet" : 
	{
		_tex setObjectTexture [1,"\ch_t72\data\t-72\soviet\t72_1_co.paa"];
		_tex setObjectTexture [2,"\ch_t72\data\t-72\soviet\t72_2_co.paa"];
		_tex setObjectTexture [3,"\ch_t72\data\t-72\soviet\t72_3_co.paa"];
		_tex setObjectTexture [4,"\ch_t72\data\t-72\soviet\t72_4_co.paa"];
		_tex setObjectTexture [5,"\ch_t72\data\t-72\soviet\t72_track_co.paa"];
	};

	case "Modern" : 
	{
		_tex setObjectTexture [1,"\ch_t72\data\t-72\modern\t72_1_co.paa"];
		_tex setObjectTexture [2,"\ch_t72\data\t-72\modern\t72_2_co.paa"];
		_tex setObjectTexture [3,"\ch_t72\data\t-72\modern\t72_3_co.paa"];
		_tex setObjectTexture [4,"\ch_t72\data\t-72\modern\t72_4_co.paa"];
		_tex setObjectTexture [5,"\ch_t72\data\t-72\modern\t72_track_co.paa"];
	};

	case "Desert" : 
	{
		_tex setObjectTexture [1,"\ch_t72\data\t-72\desert\t72_1_co.paa"];
		_tex setObjectTexture [2,"\ch_t72\data\t-72\desert\t72_2_co.paa"];
		_tex setObjectTexture [3,"\ch_t72\data\t-72\desert\t72_3_co.paa"];
		_tex setObjectTexture [4,"\ch_t72\data\t-72\desert\t72_4_co.paa"];
		_tex setObjectTexture [5,"\ch_t72\data\t-72\desert\t72_track_co.paa"];
	};

	case "RACS" : 
	{
		_tex setObjectTexture [1,"\ch_t72\data\t-72\racs\t72_1_co.paa"];
		_tex setObjectTexture [2,"\ch_t72\data\t-72\racs\t72_2_co.paa"];
		_tex setObjectTexture [3,"\ch_t72\data\t-72\racs\t72_3_co.paa"];
		_tex setObjectTexture [4,"\ch_t72\data\t-72\racs\t72_4_co.paa"];
		_tex setObjectTexture [5,"\ch_t72\data\t-72\racs\t72_track_co.paa"];
	};
};


//the following code is here to fix a bug with setObjectTexture command in singleplayer games
sleep 0.1;

waitUntil {time == 0};

CH_Textures = [_tex, _camo] execVM "\ch_t72_cfg\scripts\t-72\textures.sqf";