Jump to content

Sign in to follow this  
lifetap

Weapon holder

Recommended Posts

Having created a new launcher based on the NLAW, I've run into a small problem.

When the new launcher is slung over the shoulder of a unit that dies, it disappears. If you walk up to the dead unit and select the inventory, it is still there, but invisible.

I assumed this was due to me not implementing a suitable weapon holder. I've added one, as per the following code, but it makes no difference.

class cfgWeapons {
....
class New_Launcher: launch_NLAW_F {
	scope = 2;
	displayName = "New launcher";
	model = "\Weapons\New_Launcher.p3d";
	picture = "\Weapons\UI\New_Launcher.paa";
};
};

class cfgVehicles {
....
	class Weapon_New_Launcher: Launcher_Base_F	{
	scope = 2;
	scopeCurator = 2;
	displayName = "New Launcher";
	vehicleClass = "WeaponsSecondary";
	model = "\Weapons\New_Launcher.p3d";

	class TransportWeapons {
		class New_Launcher	{
			weapon = "New_Launcher";
			count = 1;
		};
	};
	class TransportMagazines {};
};
};

Any thoughts on how to overcome the issue?

Thanks

Lifetap

Share this post


Link to post
Share on other sites

Haven't seen this on any of our launchers. Do you have a WeaponSlotsInfo class in your launchers config?. The only other thing i can think of is one of your model LODs isn't made properly; most probably the geometry LOD.

Share this post


Link to post
Share on other sites

Yes we have the following in the launcher class

	class WeaponSlotsInfo {
		mass = 264; // 12kg
	};

We're also tried an alternate p3d and still get the same effect

Share this post


Link to post
Share on other sites

Solved: It was a missing weapon mode. I needed the line

modes[] = {"this");

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  

×