Guten Tag, ich probiere hier mit diversen Scripts die hier im Forum verfügbar sind meine Rücksäcke für die Polizei unsichtbar zu machen , jedoch klappt es einfach nicht! Könnte vl. jemand seine Methode dafür schrittweise erklären?
Rucksack unsichtbar
-
Landenova -
2. März 2017 um 03:45 -
Geschlossen -
Erledigt
-
-
Was hast Du denn bisher probiert?
-
Moin,
hier mal der passende Code um das zu realisieren.
Code: fn_playerSkins.sqf
Alles anzeigen#include "..\..\script_macros.hpp" /* File: fn_playerSkins.sqf Author: Daniel Stuart Description: Sets skins for players by their side and uniform. */ private ["_skinName"]; switch (playerSide) do { case civilian: { if (LIFE_SETTINGS(getNumber,"civ_skins") isEqualTo 1) then { if (uniform player isEqualTo "U_C_Poloshirt_blue") then { player setObjectTextureGlobal [0, "textures\civilian_uniform_1.jpg"]; }; if (uniform player isEqualTo "U_C_Poloshirt_burgundy") then { player setObjectTextureGlobal [0, "textures\civilian_uniform_2.jpg"]; }; if (uniform player isEqualTo "U_C_Poloshirt_stripped") then { player setObjectTextureGlobal [0, "textures\civilian_uniform_3.jpg"]; }; if (uniform player isEqualTo "U_C_Poloshirt_tricolour") then { player setObjectTextureGlobal [0, "textures\civilian_uniform_4.jpg"]; }; if (uniform player isEqualTo "U_C_Poloshirt_salmon") then { player setObjectTextureGlobal [0, "textures\civilian_uniform_5.jpg"]; }; if (uniform player isEqualTo "U_C_Poloshirt_redwhite") then { player setObjectTextureGlobal [0, "textures\civilian_uniform_6.jpg"]; }; if (uniform player isEqualTo "U_C_Commoner1_1") then { player setObjectTextureGlobal [0, "textures\civilian_uniform_7.jpg"]; }; }; }; case west: { if (uniform player isEqualTo "U_Rangemaster") then { _skinName = "textures\cop_uniform.jpg"; if (LIFE_SETTINGS(getNumber,"cop_extendedSkins") isEqualTo 1) then { if (FETCH_CONST(life_coplevel) >= 1) then { _skinName = ["textures\cop_uniform_",(FETCH_CONST(life_coplevel)),".jpg"] joinString ""; }; }; player setObjectTextureGlobal [0, _skinName]; }; if(backpack player != "") then {(unitBackpack player) setObjectTextureGlobal [0,""];}; }; case independent: { if (uniform player isEqualTo "U_Rangemaster") then { player setObjectTextureGlobal [0, "textures\medic_uniform.jpg"]; }; }; };
Zeile 48 ist die entscheidende. Hier wird die Rucksacktexture mit einem leerem Wert überschrieben.
Damit sollte es in der 5.x eigentlich funktionieren.
Gruß,
moeck
-
Sollte das Problem lösen