Jump to content
  • 0

Adding in trader @ Napf


Darihon

Question

Hello,

 

I tried to add a new trader today on the map Napf. The AI spawns great, but I don't have a 'trader menu' option. I did the same on Chernarus and it went great there. One thing I noticed. There was no instance 24 yet (in server_trader, database), so I made one. 

 

Server_traders in database: 

id - classname - instance - static - desc

500 - Ins_Soldier_Crew - 24 - / - Overwatch 1

 

Server_traders.sqf:

menu_Ins_Soldier_Crew = [
[["AK Variant",800]],
[],
"neutral"
];
 
Spawn in code:

_unit_4444 = objNull;
if (true) then
{
  _this = createAgent ["Ins_Soldier_Crew", [15486.6,13235.5], [], 0, "CAN_COLLIDE"];
  _unit_4444 = _this;
  _this setDir 94; //trader will face north
  _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;
};

 
I hope one of you can help me out, thanks in advance,

Darryl
Link to comment
Share on other sites

4 answers 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
  • Advertisement
  • Discord

×
×
  • Create New...