Hey Leute,
ich probiere jetzt schon den ganzen Tag rum aber schaffe es nicht die Skins der Polizeiuniformen nach Rängen zu laden
Ich habe folgendes gemacht:
1. fn_loadClothingSkins.sqf erstellt:
C: fn_loadClothingSkins.sqf
switch (playerSide) do {
case west: {
case (__GETC__(life_coplevel) == 1): {
waitUntil {uniform player == "U_B_CombatUniform_mcam"};
player setObjectTextureGlobal [0,"textures\cop_uniform_1.jpg"];
waitUntil {uniform player != "U_B_CombatUniform_mcam"};
};
case (__GETC__(life_coplevel) == 2): {
waitUntil {uniform player == "U_B_CombatUniform_mcam"};
player setObjectTextureGlobal [0,"textures\cop_uniform_2.jpg"];
waitUntil {uniform player != "U_B_CombatUniform_mcam"};
};
case (__GETC__(life_coplevel) == 3): {
waitUntil {uniform player == "U_B_CombatUniform_mcam"};
player setObjectTextureGlobal [0,"textures\cop_uniform_3.jpg"];
waitUntil {uniform player != "U_B_CombatUniform_mcam"};
};
case (__GETC__(life_coplevel) == 4): {
waitUntil {uniform player == "U_B_CombatUniform_mcam"};
player setObjectTextureGlobal [0,"textures\cop_uniform_4.jpg"];
waitUntil {uniform player != "U_B_CombatUniform_mcam"};
};
case (__GETC__(life_coplevel) == 5): {
waitUntil {uniform player == "U_B_CombatUniform_mcam"};
player setObjectTextureGlobal [0,"textures\cop_uniform_5.jpg"];
waitUntil {uniform player != "U_B_CombatUniform_mcam"};
};
case (__GETC__(life_coplevel) == 6): {
waitUntil {uniform player == "U_B_CombatUniform_mcam"};
player setObjectTextureGlobal [0,"textures\cop_uniform_6.jpg"];
waitUntil {uniform player != "U_B_CombatUniform_mcam"};
};
case (__GETC__(life_coplevel) == 7): {
waitUntil {uniform player == "U_B_CombatUniform_mcam"};
player setObjectTextureGlobal [0,"textures\cop_uniform_7.jpg"];
waitUntil {uniform player != "U_B_CombatUniform_mcam"};
};
default {};
if(backpack player == "B_Carryall_cbr") then {
unitBackpack player setObjectTextureGlobal [0,""];
};
};
case civilian: {
default {};
};
case independent: {
default {};
};
case east: {
default {};
};
};
Alles anzeigen
2. Die fn_loadClothing_Skins.sqf in der Functions.hpp registriert
3. In der fn_initCop.sqf folgendes eingefügt:
Das sah dann so aus:
C: fn_initCop.sqf
#include "..\script_macros.hpp"
/*
File: fn_initCop.sqf
Author: Bryan "Tonic" Boardwine
Description:
Cop Initialization file.
*/
private "_end";
player addRating 9999999;
waitUntil {!(isNull (findDisplay 46))};
_end = false;
if (life_blacklisted) exitWith {
["Blacklisted",false,true] call BIS_fnc_endMission;
sleep 30;
};
if ((FETCH_CONST(life_coplevel) isEqualTo 0) && (FETCH_CONST(life_adminlevel) isEqualTo 0)) then {
["NotWhitelisted",false,true] call BIS_fnc_endMission;
sleep 35;
};
[] call life_fnc_spawnMenu;
waitUntil{!isNull (findDisplay 38500)}; //Wait for the spawn selection to be open.
waitUntil{isNull (findDisplay 38500)}; //Wait for the spawn selection to be done.
[] call life_fnc_loadClothingSkins;
Alles anzeigen
Und ingame habe ich dann einfach den Standart Skin der Kleidung
In der RPT-Log steht ein Fehler, jedoch kann ich diesen nicht Entziffern(Hab keine Ahnung von Logs)
Denke mal daran liegt es:
Code: arma3server_2016-11-13_15-30-15.rpt
15:30:40 Error in expression <erSide) do {
case west: {
case (__GETC__(life_coplevel) == 1) : {
waitUntil {uni>
15:30:40 Error position: <(life_coplevel) == 1) : {
waitUntil {uni>
15:30:40 Error Missing )
15:30:40 File mpmissions\__cur_mp.Altis\core\fn_loadClothingSkins.sqf, line 10
15:30:40 Error in expression <erSide) do {
case west: {
case (__GETC__(life_coplevel) == 1) : {
waitUntil {uni>
15:30:40 Error position: <(life_coplevel) == 1) : {
waitUntil {uni>
15:30:40 Error Missing )
15:30:40 File mpmissions\__cur_mp.Altis\core\fn_loadClothingSkins.sqf, line 10
Alles anzeigen
Danke schonmal für eure Antworten!