/* fn_equipGear.sqf Author: Keine Ahnung.. Bohemia Wiki+SQF? o.O Edit: Nox, www.ragecore.de / www.native-gamer.net */ 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 = "\textures\police_shirt.paa"; _unit setObjectTextureGlobal [0,_path]; }; case "U_B_CombatUniform_mcam" : { _path = "textures\cop\captain.paa"; _unit setObjectTextureGlobal [0,_path]; }; case "U_B_CombatUniform_mcam_vest" : { _path = "textures\cop\detective.paa"; _unit setObjectTextureGlobal [0,_path]; }; case "U_B_CombatUniform_mcam_worn" : { _path = "textures\cop\swat.paa"; _unit setObjectTextureGlobal [0,_path]; }; case "U_B_HeliPilotCoveralls" : { _path = "\textures\cop_uniform_1.paa" _unit setObjectTextureGlobal [0,_path]; }; }; if((backpack player) == "B_Bergen_mcamo") then { //(unitBackpack _unit) setObjectTextureGlobal [0, "textures\cop\cop_backpack.paa"]; (unitBackpack player) setObjectTextureGlobal [0, ""]; }; }; //MEDIC KLEIDUNG if(playerSide == independent) then { switch(_type) do { case "U_C_WorkerCoveralls" : { _path = "textures\medic\medic_uniform.paa"; _unit setObjectTextureGlobal [0,_path]; }; }; if((backpack player) == "B_Bergen_mcamo") then { (unitBackpack _unit) setObjectTextureGlobal [0, "textures\medic\medic_backpack.paa"]; }; }; //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]; }; }; };