Jump to content
Sign in to follow this  
soldierman

Ammo Box Config Backpack

Recommended Posts

Im trying to add the backpacks from CLF And Task force radio to a custom ammo box. Im doing this through a config file, i have tried using the class TransportWeapons and TransportItems to add the backpacks. If i put it in items i dont get any errors but the backpacks still dont show. Any help would be appreciated.

Share this post


Link to post
Share on other sites

Just replace the ITEMCLASSNAMEHERE with whatever the backpack class name is and replace the BOXCLASSNAMEHERE with whatever you want the classname of the box to be.

enum {
DESTRUCTENGINE = 2,
DESTRUCTDEFAULT = 6,
DESTRUCTWRECK = 7,
DESTRUCTTREE = 3,
DESTRUCTTENT = 4,
STABILIZEDINAXISX = 1,
STABILIZEDINAXESXYZ = 4,
STABILIZEDINAXISY = 2,
STABILIZEDINAXESBOTH = 3,
DESTRUCTNO = 0,
STABILIZEDINAXESNONE = 0,
DESTRUCTMAN = 5,
DESTRUCTBUILDING = 1,
};

class CfgPatches {
class box_config {
	units[] = {};
	weapons[] = {};
	requiredVersion = 0.1;
	requiredAddons[] = {"A3_Characters_F_BLUFOR"};
};
};

class CfgVehicles {
class NATO_Box_Base;
class BOXCLASSNAMEHERE: NATO_Box_Base {
	scope = 2;
	vehicleClass = "Ammo";
	displayName = "BOXNAMEHERE";
	model = "\A3\weapons_F\AmmoBoxes\WpnsBox_F";
	icon = "iconCrateWpns";
	class TransportWeapons{};
	class TransportMagazines{};
	class TransportItems
	{
		class _xx_ITEMCLASSNAMEHERE
		{
			name = "ITEMCLASSNAMEHERE";
			count = 10; //Item Count Here
		};
		class _xx_ITEMCLASSNAMEHERE
		{
			name = "ITEMCLASSNAMEHERE";
			count = 10; //Item Count Here
		};
		class _xx_ITEMCLASSNAMEHERE
		{
			name = "ITEMCLASSNAMEHERE";
			count = 10; //Item Count Here
		};
	};
};
};

Share this post


Link to post
Share on other sites

Doesnt appear to work for me. Again , No errors but no backpacks. Tried with Vanilla arma backpacks and CLF + TFR radios.

Share this post


Link to post
Share on other sites

Can you show me your config?

Share this post


Link to post
Share on other sites

I think you need to use the transportBackpack class instead of items.

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  

×