add addAction to a single Trader

1 post in this topic

Hey guys, iam currently working on a mission script where players first have to talk to npcs to get informations about the mission, where to find and so on and for that i went into my initPlayerLocal.


private _npcs = [

["Exile_Trader_CommunityCustoms", [], "Exile_Trader_CommunityCustoms", "WhiteHead_09", [[],[],[],["CUP_U_C_Fireman_01",[]],[],[],"Exile_Headgear_SafetyHelmet","",[],["","","","","",""]], [11551.2, 15344.5, 114.116], [0.874928, -0.484253, 0], [0, 0, 1]]


I added

,["Feuerwehrmann ansprechen","mission\feuer1.sqf"]

so it now looks like this:

["Exile_Trader_CommunityCustoms", [], "Exile_Trader_CommunityCustoms", "WhiteHead_09", [[],[],[],["CUP_U_C_Fireman_01",[]],[],[],"Exile_Headgear_SafetyHelmet","",[],["","","","","",""]], [11551.2, 15344.5, 114.116], [0.874928, -0.484253, 0], [0, 0, 1],["Feuerwehrmann ansprechen","mission\feuer1.sqf"]]

then i went a bit down to the _trader section and added

_trader addAction (_x select 8);

The option does show up now but the script is not getting executed.. can someone help me out with that ?


Edited by Erzengel
  • Like 1

Share this post

Link to post
Share on other sites

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.