Need Custom Loadout Help For Epoch Please

Nsomnia

New Member
I Need A Little Help/Advice On How To Fix My Custom Loadouts, I Run Epoch.

Script I Use :

_loadList = ["xxx"];
_lpID = getPlayerUID player;
//CL 1
if ((_lpID in ["xxx"]) && (_lpID in _loadList)) then {
DefaultMagazines = ["ItemBandage"];
DefaultWeapons = ["ItemFhbox_DZE"];
DefaultBackpack = "DZ_LargeGunBag_EP1";
DefaultBackpackWeapon = "";
};
//CL 2
if ((_lpID in ["xxx"]) && (_lpID in _loadList)) then {
DefaultMagazines = ["5x_22_LR_17_HMR"];
DefaultWeapons = ["ItemCompass"];
DefaultBackpack = "DZ_ALICE_Pack_EP1";
DefaultBackpackWeapon = "";
};
//CL 3
if ((_lpID in ["xxx"]) && (_lpID in _loadList)) then {
DefaultMagazines = ["ItemAntibiotic"];
DefaultWeapons = ["M9SD"];
DefaultBackpack = "DZ_ALICE_Pack_EP1";
DefaultBackpackWeapon = "";
};
//Default Loadout
if (!(_lpID in _loadList)) then {
DefaultMagazines = ["ItemMorphine","6Rnd_45ACP"];
DefaultWeapons = ["revolver_EP1"];
DefaultBackpack = "DZ_TerminalPack_EP1";
DefaultBackpackWeapon = "";
};
______________________________________________________________________

Ok So the problem I have is this only works about 80% of the time and was wondering if some one might be able to tell me why that is and how to fix it if possible.

Default Loadout Fails More Often Then The Custom Loadouts.

I Exec this from the init - no changes made any where else just fyi.

Very grateful for any help I can get.
 
Back
Top