Jump to content
  • 0

Custom Loadouts with skins


Komplex

Question

I've been using this costum loadout script for some of the clans on my server but would like to add a skin to it. Right now it looks like:

//CLAN Loadout
if ((getPlayerUID player) in ["########"]) then {  //Clan: Name, Name
    DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","ItemMorphine","ItemPainkiller","ItemBloodbag","ItemWaterbottleBoiled","ItemWaterbottleBoiled","FoodSteakCooked","8Rnd_B_Beneli_Pellets","8Rnd_B_Beneli_Pellets","8Rnd_B_Beneli_74Slug"];
    DefaultWeapons = ["M9SD","Remington870_lamp","Binocular","ItemMap","ItemCompass","ItemFlashlightRed","ItemKnife","ItemMatchbox","ItemHatchet"];
    DefaultBackpack = "DZ_GunBag_EP1";
    DefaultBackpackWeapon = "";
    };

When I add:  DefaultModel = "Rocket_DZ";  it sort of works, as in you can see both skins at the same time lol.

 

So Then I tried something like this:

//CLAN Loadout
if ((getPlayerUID player) in ["########"]) then {  //Clan: Name, Name
    DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","ItemMorphine","ItemPainkiller","ItemBloodbag","ItemWaterbottleBoiled","ItemWaterbottleBoiled","FoodSteakCooked","8Rnd_B_Beneli_Pellets","8Rnd_B_Beneli_Pellets","8Rnd_B_Beneli_74Slug"];
    DefaultWeapons = ["M9SD","Remington870_lamp","Binocular","ItemMap","ItemCompass","ItemFlashlightRed","ItemKnife","ItemMatchbox","ItemHatchet"];
    DefaultBackpack = "DZ_GunBag_EP1";
    DefaultBackpackWeapon = "";
    DefaultModel = "['Sniper1_DZ'] spawn player_humanityMorph";
    };

and variations of that default model line as I have no clue what I'm doing such as:

[dayz_playerUID,dayz_characterID,'Sniper1_DZ'] spawn player_humanityMorph;

 

 

However I'm not really sure what to try from here. Any ideas?

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0
if ((getPlayerUID player) in ["#######"]) then {  //Clan: Name, Name
    DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","ItemMorphine","ItemPainkiller","ItemBloodbag","ItemWaterbottleBoiled","ItemWaterbottleBoiled","FoodSteakCooked","8Rnd_B_Beneli_Pellets","8Rnd_B_Beneli_Pellets","8Rnd_B_Beneli_74Slug"];
    DefaultWeapons = ["M9SD","Remington870_lamp","Binocular","ItemMap","ItemCompass","ItemFlashlightRed","ItemKnife","ItemMatchbox","ItemHatchet"];
    DefaultBackpack = "DZ_GunBag_EP1";
    DefaultBackpackWeapon = "";
	[] spawn {
		waitUntil {(!isNil "PVDZE_plr_LoginRecord")};
		if (!isNil "dayz_selectGender") then {
			waitUntil { (getPosATL player select 2 < .1 && (vehicle player == player)) };
			if (alive player) then {
				_charID = player getVariable ["CharacterID", "0"];
				_playerUID = getPlayerUID player;
				[_playerUID,_charID,"Sniper1_DZ"] spawn player_humanityMorph;
			};
		};
	};
};
Link to comment
Share on other sites

  • 0
if ((getPlayerUID player) in ["#######"]) then {  //Clan: Name, Name
    DefaultMagazines = ["ItemBandage","ItemBandage","ItemBandage","ItemBandage","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","ItemMorphine","ItemPainkiller","ItemBloodbag","ItemWaterbottleBoiled","ItemWaterbottleBoiled","FoodSteakCooked","8Rnd_B_Beneli_Pellets","8Rnd_B_Beneli_Pellets","8Rnd_B_Beneli_74Slug"];
    DefaultWeapons = ["M9SD","Remington870_lamp","Binocular","ItemMap","ItemCompass","ItemFlashlightRed","ItemKnife","ItemMatchbox","ItemHatchet"];
    DefaultBackpack = "DZ_GunBag_EP1";
    DefaultBackpackWeapon = "";
	[] spawn {
		waitUntil {(!isNil "PVDZE_plr_LoginRecord")};
		if (!isNil "dayz_selectGender") then {
			waitUntil { (getPosATL player select 2 < .1 && (vehicle player == player)) };
			if (alive player) then {
				_charID = player getVariable ["CharacterID", "0"];
				_playerUID = getPlayerUID player;
				[_playerUID,_charID,"Sniper1_DZ"] spawn player_humanityMorph;
			};
		};
	};
};

Can anyone confirm that this works?

 

Also use DefaultBackpackItems = [""]; instead of DefaultBackpackWeapon = "";

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...