dan3ko

How to remove trader custom action

1 post in this topic

Hello. 

I have add an action to trader for run a custom mision and I want to remove it when used. The action added is this:

class Soborno
	{
    targetType = 2;
    target = "Exile_Trader_Office";

		class Actions
		{
			class Sobornar: ExileAbstractAction
			{
				title = "Sobornar al mafioso";
				condition = "true";
				action = "[] execVM 'addons\convoymision\sobornar_trader_fnc.sqf';";
			};
		};
	};

With this include in config.hpp in mission directory:

class CfgInteractionMenus
{
	#include "addons\convoymision\sobornar_Interaccion.hpp"
};

I have read in BI forums that with this code can remove it, but I don't know how to run, insert  the code: 

class CfgActions {
    class UseMagazine {
        show = 0;
    };
};

I try to run it with

[] execVM "filename.hpp";

but doesn't work. 

Can anyone help me?

Thanks.

Share this post


Link to post
Share on other sites
Advertisement

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

  • Recently Browsing   0 members

    No registered users viewing this page.