/* fn_equipGear.sqf Author: BundeswehrZockt TanoaGemeinde Onlny Edit: BundeswehrZockt */ private["_path","_unit","_type"]; _unit = [_this,0] call BIS_fnc_param; _type = [_this,1,"",[""]] call BIS_fnc_param; //COP KLEIDUNG if(playerSide == west) then { switch(_type) do { case "U_Rangemaster" : { _path = "skins\polizei_rekrut.jpg"; _unit setObjectTextureGlobal [0,_path]; }; case "U_B_CTRG_3" : { _path = "skins\polizei_normal.jpg"; _unit setObjectTextureGlobal [0,_path]; }; case "U_B_CombatUniform_mcam" : { _path = "skins\polizei_sek.jpg"; _unit setObjectTextureGlobal [0,_path]; }; case "U_B_CombatUniform_mcam_worn" : { _path = "skins\polizei_ausbilder.jpg"; _unit setObjectTextureGlobal [0,_path]; }; case "U_B_CombatUniform_mcam_vest" : { _path = "skins\polizei_leitung.jpg"; _unit setObjectTextureGlobal [0,_path]; }; case "U_B_CTRG_1" : { _path = "skins\polizei_einsatzleitung.jpg"; _unit setObjectTextureGlobal [0,_path]; }; }; if((backpack player) == "B_AssaultPack_blk") then { (unitBackpack _unit) setObjectTextureGlobal [0, ""]; (unitBackpack player) setObjectTextureGlobal [0, ""]; //Macht Rucksäcke unsichtbar :) }; }; //MEDIC KLEIDUNG if(playerSide == independent) then { switch(_type) do { case "U_C_WorkerCoveralls" : { _path = "skins\medic_uniform.paa"; _unit setObjectTextureGlobal [0,_path]; }; }; if((backpack player) == "B_Bergen_mcamo") then { (unitBackpack _unit) setObjectTextureGlobal [0, ""]; }; }; //ZIVILISTEN KLEIDUNG if(playerSide == civilian) then { switch(_type) do { case "U_C_WorkerCoveralls" : { _path = "textures\civ\adac_cloth.jpg"; _unit setObjectTextureGlobal [0,_path]; }; case "U_C_Poloshirt_blue" : { _path = "textures\civ\rccloth.jpg"; _unit setObjectTextureGlobal [0,_path]; }; }; };