Jump to content
  • 0

Custom trader help


chaingun427

Question

I am playing hell trying to get a Black market trader working on Taviana... I'm attempting to use the ID 154 from instance 11 moved to instance 13 in the DB

 

So far I've built the area in the 3d Editor, placed the trader model in the server_traders.sqf

// Black Market Vendor
menu_Soldier_GL_M16A2_PMC = [
	[["Black Market Ammo",527],["Black Market Weapons",526],["Explosives",529]],
	[],
	"neutral"
];

Added the trader into the server PBO's mission.sqf

_unit_150 = objNull;
if (true) then
{
  _this = createAgent ["Soldier_GL_M16A2_PMC", [5472.5146, 10043.719, -0.00078012014], [], 0, "CAN_COLLIDE"];
  _unit_150 = _this;
  _this setDir 211.9015;
  _this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
  _this setUnitAbility 0.60000002;
  _this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;
};

and edited the database to change TID 154 from instance 11, to Instance 13. I don't get a scroll menu on the in game character to allow me to initiate the trade.

 

Anyone have an idea why? Am I just going to have to make an all new trader and all new trader id's for my catagories

 

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

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
  • Discord

×
×
  • Create New...