Aggro

Object addaction

7 posts in this topic

I am trying to add object action however it would seem MPmission > Config.cpp > class CfgInteractionMenus , only applies addaction to items that exist in class group , like car , air, or safe etc ,

I am trying to object addaction to decoration object I have obtained from another non exile mod, which is spawned server side .pbo, and specifying the class name for this object is not doing it , I can add it to car class or air just fine. Whats the best to add object addaction in exile?

 

 

Edited by Aggro

Share this post


Link to post
Share on other sites
Advertisement

I am not sure if it needs to be that complicated, I am looking to run a function

[] remoteExec ["Vehicle_fnc_find",2];

Something like this, which works in debug console:

Exile_Trader_CommunityCustoms2 addaction ["Get in Vehicle",{[] remoteExec ["Vehicle_fnc_find",2];}];

I can get the addaction to show up at all !

Edited by Aggro

Share this post


Link to post
Share on other sites
On 14/11/2016 at 8:40 AM, Aggro said:

I am not sure if it needs to be that complicated, I am looking to run a function


[] remoteExec ["Vehicle_fnc_find",2];

Something like this, which works in debug console:


Exile_Trader_CommunityCustoms2 addaction ["Get in Vehicle",{[] remoteExec ["Vehicle_fnc_find",2];}];

I can get the addaction to show up at all !

Exile_Trader_CommunityCustoms2 

This is not an object, it's a classname. Addactions should be added to Objects.

Share this post


Link to post
Share on other sites
On 11/17/2016 at 0:08 PM, Mezo said:

Exile_Trader_CommunityCustoms2 

This is not an object, it's a classname. Addactions should be added to Objects.

it is a unit, what would be best way to add to unit? player works, object i guess has to be spawned from mission or mpmission as it didnt read the object class name if its read server side even though it is visible, i might be wrong on this though.

Share this post


Link to post
Share on other sites

Are you trying to add an addaction to a trader?

9 hours ago, Aggro said:

it is a unit, what would be best way to add to unit? player works, object i guess has to be spawned from mission or mpmission as it didnt read the object class name if its read server side even though it is visible, i might be wrong on this though.

 

Share this post


Link to post
Share on other sites
8 hours ago, Mezo said:

Are you trying to add an addaction to a trader?

 

started out as object, but either really. I do like the idea of addaction to dedicated trader like 

Exile_Trader_CommunityCustoms2

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.