Guten Tag,
Ich habe folgendes Problem:
Ich wollte für meinen Arma3 RP Server Rang-Abhängige Uniformen einfügen.
Sprich Medic Level 1 = Skin_1 auf Uniform_1
Medic Level 2 = Skin_2 auf Uniform_1
Medic Level 3 = Skin_3 auf Uniform_1
usw. Uniform_1 habe ich bei mir die U_I_CombatUniformbenutzt bzw wollte sie verwenden.
Das ganze für die Cops habe ich bereits auf dem Server und funktioniert
Ich habe das von den Cops auf die medics Kopiert und angepasst verstehe aber nicht warum das nicht funktioniert.
Code
#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(uniform player isEqualTo "U_B_CombatUniform_mcam") then {
player setObjectTextureGlobal [0, ""];
};
};
case west: {
// Uniformen für Cops
if(playerSide == west) then {
switch(uniform player) do {
case "U_B_CombatUniform_mcam_worn" : {
if(FETCH_CONST(life_coplevel) == 1) then {
player setObjectTextureGlobal [0,"textures\klamotten\uni_blau.jpg"];
};
if(FETCH_CONST(life_coplevel) == 2) then {
player setObjectTextureGlobal [0,"textures\klamotten\uni_blau.jpg"];
};
if(FETCH_CONST(life_coplevel) == 3) then {
player setObjectTextureGlobal [0,"textures\klamotten\uni_blau.jpg"];
};
if(FETCH_CONST(life_coplevel) == 4) then {
player setObjectTextureGlobal [0,"textures\klamotten\uni_blau.jpg"];
};
if(FETCH_CONST(life_coplevel) == 5) then {
player setObjectTextureGlobal [0,"textures\klamotten\uni_blau.jpg"];
};
if(FETCH_CONST(life_coplevel) == 6) then {
player setObjectTextureGlobal [0,"textures\klamotten\uni_blau.jpg"];
};
if(FETCH_CONST(life_coplevel) == 7) then {
player setObjectTextureGlobal [0,"textures\klamotten\uni_blau.jpg"];
};
if(FETCH_CONST(life_coplevel) == 8) then {
player setObjectTextureGlobal [0,"textures\klamotten\uni_weis.jpg"];
};
if(FETCH_CONST(life_coplevel) == 9) then {
player setObjectTextureGlobal [0,"textures\klamotten\uni_weis.jpg"];
};
if(FETCH_CONST(life_coplevel) == 10) then {
player setObjectTextureGlobal [0,"textures\klamotten\uni_weis.jpg"];
};
if(FETCH_CONST(life_coplevel) == 11) then {
player setObjectTextureGlobal [0,"textures\klamotten\uni_weis.jpg"];
};
if(FETCH_CONST(life_coplevel) == 12) then {
player setObjectTextureGlobal [0,"textures\klamotten\uni_weis.jpg"];
};
if(FETCH_CONST(life_coplevel) == 13) then {
player setObjectTextureGlobal [0,"textures\klamotten\uni_rot.jpg"];
};
if(FETCH_CONST(life_coplevel) == 14) then {
player setObjectTextureGlobal [0,"textures\klamotten\uni_rot.jpg"];
};
if(FETCH_CONST(life_coplevel) == 15) then {
player setObjectTextureGlobal [0,"textures\klamotten\uni_gelb.jpg"];
};
if(FETCH_CONST(life_coplevel) == 16) then {
player setObjectTextureGlobal [0,"textures\klamotten\uni_gelb.jpg"];
};
if(FETCH_CONST(life_coplevel) == 17) then {
player setObjectTextureGlobal [0,"textures\klamotten\uni_gelb.jpg"];
};
};
};
};
case independent: {
// Uniformen für Medics
if(playerSide == independent) then {
switch(uniform player) do {
case "U_I_CombatUniform" : {
if(FETCH_CONST(life_mediclevel) == 1) then {
player setObjectTextureGlobal [0,"skins\med\uni\meduniblack.paa"];
};
if(FETCH_CONST(life_mediclevel) == 2) then {
player setObjectTextureGlobal [0,"skins\med\uni\meduniblack.paa"];
};
if(FETCH_CONST(life_mediclevel) == 3) then {
player setObjectTextureGlobal [0,"skins\med\uni\meduniblack.paa"];
};
if(FETCH_CONST(life_mediclevel) == 4) then {
player setObjectTextureGlobal [0,"skins\med\uni\meduniblau.paa"];
};
if(FETCH_CONST(life_mediclevel) == 5) then {
player setObjectTextureGlobal [0,"skins\med\uni\meduniblau.paa"];
};
if(FETCH_CONST(life_mediclevel) == 6) then {
player setObjectTextureGlobal [0,"skins\med\uni\meduniblau.paa"];
};
if(FETCH_CONST(life_mediclevel) == 7) then {
player setObjectTextureGlobal [0,"skins\med\uni\meduniblau.paa"];
};
if(FETCH_CONST(life_mediclevel) == 8) then {
player setObjectTextureGlobal [0,"skins\med\uni\medunigelb.paa"];
};
if(FETCH_CONST(life_mediclevel) == 9) then {
player setObjectTextureGlobal [0,"skins\med\uni\medunigelb.paa"];
};
if(FETCH_CONST(life_mediclevel) == 10) then {
player setObjectTextureGlobal [0,"skins\med\uni\medunigelb.paa"];
};
if(FETCH_CONST(life_mediclevel) == 11) then {
player setObjectTextureGlobal [0,"skins\med\uni\medunigelb.paa"];
};
if(FETCH_CONST(life_mediclevel) == 12) then {
player setObjectTextureGlobal [0,"skins\med\uni\medunirot.paa"];
};
};
};
};
if (backpack player isEqualTo "B_Bergen_tna_F") then {
(unitBackpack player) setObjectTextureGlobal [0, ""];
};
};
};
Alles anzeigen
wie gesagt das für die Cops funktioniert einwandfrei.
Hier sind meine Logs
Arma3_x64_2020-04-09_22-30-10.rpt
arma3server_x64_2020-04-09_23-04-37.rpt
Vielen dank für die Schnelle hilfe!
MfG
Johannes