Jump to content
  • 0

1.0.3 Additional Trader


Codemanx

Question

Hello Everyone, I have moved my additional trader information to the Server side Mission file however, the trader is not showing up. My INIT file shows Dayz_Epoch_11 mission loading but, it is not loading everything. Any idea?

 

I do have everything in the database too.. but, it is not working.

 

Thanks

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

If you mean not showing up as in spawning then try moving it back to the mission file with the server_traders

How I am doing it: 

Create a new.sqf called anything, so mine is customtraders.sqf, then put that wherever you want, mine is in a folder called 'custom'.

Code inside mine:

if (isServer) then {
 
/*****Traders******/
_this = createCenter west;
_center_4 = _this;
 
_group_4 = createGroup _center_4;
 
//Custom AI Traders
 
_unit_2 = objNull;
if (true) then
{
  _this = _group_4 createUnit ["TK_INS_Soldier_TL_EP1", [8894.6182, 11647.938, -1.5258789e-005], [], 0, "CAN_COLLIDE"];
  _unit_2 = _this;
  _this setDir 267.00681;
  _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;
};
 
_unit_4 = objNull;
if (true) then
{
  _this = _group_4 createUnit ["US_Soldier_Engineer_EP1", [8870.4365, 11657.502, 3.0517578e-005], [], 0, "CAN_COLLIDE"];
  _unit_4 = _this;
  _this setDir -179.36406;
  _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;
};
};
 
 
Then add 
[] ExecVM "custom\customtraders.sqf";
to the bottom of your init.sqf, changing the folder/filename for whatever you saved it as.
Im assuming you know how to edit the coordinates and trader models etc for whatever you need, and make sure they are in the server_traders.sqf correctly.

Can explain it better if you dont figure it out, let me know.

Link to comment
Share on other sites

  • 0

Hello Guys, I have tried both now.. Changed the Unit to Agent and that did not work. Then I made a whole new sqf and did it like Luke said above and nothing. Here is my code,

 

_unit_900 = objNull;


if (true) then
{
_this = _group_2 createAgent ["USMC_LHD_Crew_White", [10253.105, 5601.0527, 0.3090373], [], 0, "CAN_COLLIDE"];
_unit_900 = _this;
_this setDir 56.850048;
_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;
};

_vehicle_911 = objNull;
if (true) then
{
_this = createVehicle ["HeliHCivil", [10244.679, 5610.168, -6.1035156e-005], [], 0, "CAN_COLLIDE"];
_vehicle_911 = _this;
_this setPos [10244.679, 5610.168, -6.1035156e-005];
};

_vehicle_912 = objNull;
if (true) then
{
_this = createVehicle ["Loudspeakers_EP1", [10217.492, 5610.9839, -4.5776367e-005], [], 0, "CAN_COLLIDE"];
_vehicle_912 = _this;
_this setPos [10217.492, 5610.9839, -4.5776367e-005];
};

_vehicle_913 = objNull;
if (true) then
{
_this = createVehicle ["Land_Misc_IronPipes_EP1", [10262.551, 5598.4932, -0.00015258789], [], 0, "CAN_COLLIDE"];
_vehicle_913 = _this;
_this setPos [10262.551, 5598.4932, -0.00015258789];
};

_vehicle_915 = objNull;
if (true) then
{
_this = createVehicle ["Land_Fire_barrel_burning", [10257.894, 5599.8638, 1.5258789e-005], [], 0, "CAN_COLLIDE"];
_vehicle_915 = _this;
_this setPos [10257.894, 5599.8638, 1.5258789e-005];
};

_vehicle_917 = objNull;
if (true) then
{
_this = createVehicle ["Hanged", [10258.837, 5593.9331, 0.46764749], [], 0, "CAN_COLLIDE"];
_vehicle_917 = _this;
_this setPos [10258.837, 5593.9331, 0.46764749];
};

_vehicle_918 = objNull;
if (true) then
{
_this = createVehicle ["Hanged_MD", [10257.06, 5594.4224, 0.25533554], [], 0, "CAN_COLLIDE"];
_vehicle_918 = _this;
_this setPos [10257.06, 5594.4224, 0.25533554];
};

_vehicle_925 = objNull;
if (true) then
{
_this = createVehicle ["MAP_bouda2_vnitrek", [10254.035, 5600.5742, -0.18104352], [], 0, "CAN_COLLIDE"];
_vehicle_925 = _this;
_this setDir -101.86643;
_this setPos [10254.035, 5600.5742, -0.18104352];
};

 

Let me know if you see something that I am missing.

 

I think this should be in the mission.sqf on the server.pbo..

 

Anyway.. I am stuck

Link to comment
Share on other sites

  • 0

By the looks of it, just remove "_group_2". After that it should work. Sorry for the wait. This is how I have mine set up at the bottom of the missions.sqf in the server files. 

 

_unit_178 = objNull;
if (true) then
{
  _this = createAgent ["CDF_Soldier_TL", [8279.50,3079.15,0.001], [], 0, "CAN_COLLIDE"];
  _unit_178 = _this;
  _this setDir 16;
  _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;
};
Link to comment
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
  • Advertisement
  • Discord

×
×
  • Create New...