Ich breuchte Hilfe
un zwar wie fügt mann in arma 3 in der neusten Version neue Kleidung in Shops Hinzu ich habe es in 3 Dateien eingefügt: Config_Clothing.hpp fn_initCop.sqf fn_playerSkins.sqf
Das Wars
Hinweis: Die Kleidung wird im Shop angezeigt aber wenn mann drauf drückt passiert nix die Kleidung wird nicht angezeigt.
Die neue uniform ist B_GEN_Commander_F
Config_Clothing.hpp
Code
class cop {
title = "STR_Shops_C_Police";
conditions = "";
side = "cop";
uniforms[] = {
{ "NONE", $STR_C_Remove_uniforms, 0, "" },
{ "U_Rangemaster", $STR_C_Cop_uniforms, 25, "" },
{ "B_GEN_Commander_F", "Zoll Uniform", 1250, "call life_coplevel >= 1" },
{ "U_B_CombatUniform_mcam_worn", "SEK Uniform", 550, "call life_coplevel >= 2" },
{ "U_B_CombatUniform_mcam_tshirt", "Bundeswehr Uniform", 350, "call life_coplevel >= 1" },
{ "U_B_survival_uniform", "Bundeswehr", 1250, "call life_coplevel >= 1" }
};
Alles anzeigen
fn_initCop.sqf
Code
#include "..\script_macros.hpp"
/*
File: fn_initCop.sqf
Author: Bryan "Tonic" Boardwine
Description:
Cop Initialization file.
*/
waitUntil {!(isNull (findDisplay 46))};
if (life_blacklisted) exitWith {
["Blacklisted",false,true] call BIS_fnc_endMission;
sleep 30;
};
if (!(str(player) in ["cop_1","cop_2","cop_3","cop_4"])) then {
if ((FETCH_CONST(life_coplevel) isEqualTo 0) && (FETCH_CONST(life_adminlevel) isEqualTo 0)) then {
["NotWhitelisted",false,true] call BIS_fnc_endMission;
sleep 35;
};
};
player setVariable ["rank",(FETCH_CONST(life_coplevel)),true];
[] 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.
[] spawn life_fnc_placeablesInit;
[] spawn
{
while {true} do
{
waitUntil {uniform player == "B_GEN_Commander_F"};
player setObjectTextureGlobal [0,"textures\Zoll kampfuniform.jpg"];
waitUntil {uniform player != "B_GEN_Commander_F"};// Name der class name deiner Uniform
};
};
[] spawn
{
while {true} do
{
waitUntil {uniform player == "U_B_CombatUniform_mcam_worn"};
player setObjectTextureGlobal [0,"textures\sek.jpg"];
waitUntil {uniform player != "U_B_CombatUniform_mcam_worn"};// Name der class name deiner Uniform
};
};
Alles anzeigen
fn_playerSkins.sqf
Code
case west: {
if (uniform player isEqualTo "B_GEN_Commander_F") then {
player setObjectTextureGlobal [0, "textures\Zoll_kampfuniform.jpg"];
};
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];
};
};
Alles anzeigen
Weiß jemand den Fehler bei der Neusten Version