Jump to content
Sign in to follow this  
fortune144

Unit config vest items

Recommended Posts

Hello,

i'm making a new faction with my custom gear. Everything works fine with custom items in Uniform and Backpack. 

But i can't get it work that for each Unit different items in the vest. I tried via script but that resets my arsenal loadout conifg. The vest inheriets from a mod. i tried althought via containerClass.

 

The vest is cfgWeapons so i cant use class TranportItem

 

How is the proper way to fill unit vests with custom items?

 

Thank you 

Share this post


Link to post
Share on other sites

Items in vests are defined in the magazines[] = {}; and respawnmagazines[] = {}; arrays at config level.

Share this post


Link to post
Share on other sites

Ok and Items[]={}; then for everything in the uniform? That's not working. With that  method i can't add for example ACE CableTie to vest..only magazines.

How can i add none magazine items to vest like ACE can do?

Share this post


Link to post
Share on other sites
Spoiler

	class B_soldier_AT_test: B_CTRG_Soldier_base_F
	{
		scope=2;
		displayName="testUnit";
		weapons[] = {
			"arifle_MX_ACO_pointer_F",
			"hgun_P07_blk_F", 
			"Binocular", 
			"Throw", 
			"Put"
		};
		respawnWeapons[] = {
			"arifle_MX_ACO_pointer_F",
			"hgun_P07_blk_F", 
			"Binocular", 
			"Throw", 
			"Put"
		};
		Items[]=
		{
			"ACE_CableTie"
		};
		RespawnItems[]=
		{
			"ACE_CableTie"
		};
		magazines[]=
		{
			"30Rnd_65x39_caseless_mag",
			"16Rnd_9x21_Mag",
			"SmokeShellGreen",
			"SmokeShellGreen",
			"SmokeShellGreen",
			"SmokeShell",
			"SmokeShell",
			"SmokeShell",
			"SmokeShellPurple",
			"SmokeShellPurple",
			"SmokeShellPurple",
			"1Rnd_SmokeBlue_Grenade_shell",
			"1Rnd_SmokeBlue_Grenade_shell",
			"1Rnd_SmokeGreen_Grenade_shell",
			"1Rnd_SmokeGreen_Grenade_shell"
		};
		respawnMagazines[]=
		{
			"30Rnd_65x39_caseless_mag",
			"16Rnd_9x21_Mag",
			"SmokeShellGreen",
			"SmokeShellGreen",
			"SmokeShellGreen",
			"SmokeShell",
			"SmokeShell",
			"SmokeShell",
			"SmokeShellPurple",
			"SmokeShellPurple",
			"SmokeShellPurple",
			"1Rnd_SmokeBlue_Grenade_shell",
			"1Rnd_SmokeBlue_Grenade_shell",
			"1Rnd_SmokeGreen_Grenade_shell",
			"1Rnd_SmokeGreen_Grenade_shell"
		};
		role = "Rifleman";
		icon = "iconManLeader";
		linkedItems[]=
		{
			"V_PlateCarrier1_rgr",
			"ItemMap",
			"ItemCompass",
			"ItemWatch",
			"ItemRadio",
			"NVGoggles"
		};
		respawnLinkedItems[]=
		{
			"V_PlateCarrier1_rgr",
			"ItemMap",
			"ItemCompass",
			"ItemWatch",
			"ItemRadio",
			"NVGoggles"
		};
		class eventhandlers
		{
			class test_loadout_handler
			{
			 init = "somePath/toSomeLoadout.sqf";
			};
		};
	};

 

 

So my vest is empty everything is in the uniform.....but i want to define what magazines/items are in uniform and in vest....the eventhandler script what makes my loadout overwrites my loadout when i edit one of the units, after mission start...

Share this post


Link to post
Share on other sites

Nevermind i found Drongo's Config Generator...edit the config a bit and it's working now. thank you

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×