Jump to content

Recommended Posts

I am trying to add a recoil to my weapons, but Arma 3 always says: "Cannot update non class from class mod_uw\config.cpp/cfgRecoils/recoil_empty/".

What do I do wrong?

Part of my code:
 

class cfgRecoils
{
	recoil_empty_list[] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
	class Default;
	class recoil_empty: Default
	{
		muzzleOuter[] = {0.08,0.3,0.1,0.09};
		muzzleInner[] = {0,0,0.03,0.03};
		kickBack[] = {0.01,0.02};
		permanent = 0.01;
		temporary = 0.01;
	};
};

File: https://www.dropbox.com/s/ho5aw314uqv6d7s/config.cpp?dl=0

Share this post


Link to post
Share on other sites

Try adjusting your inheritance structure:

class cfgRecoils
{
	class Default;
	class recoil_default;

	class your_recoil: recoil_default
    {
      blah

 

Share this post


Link to post
Share on other sites
9 hours ago, Jackal326 said:

Try adjusting your inheritance structure:


class cfgRecoils
{
	class Default;
	class recoil_default;

	class your_recoil: recoil_default
    {
      blah

 

Thanks a lot! It worked! 

Share this post


Link to post
Share on other sites
9 hours ago, Jackal326 said:

Try adjusting your inheritance structure:


class cfgRecoils
{
	class Default;
	class recoil_default;

	class your_recoil: recoil_default
    {
      blah

 

But although recoil works, Arma says, that the recoil "is not an array". How to solve it?

Share this post


Link to post
Share on other sites

I have already solved a problem. I've just removed recoils from modes (I mean from Single/Burst/FullAuto) or replaced them with an array.

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

×