Jump to content
  • 0

Trader City Coords


Hammer

Question

I've been trying to add a trader city with traders into my Dayz Epoch Panthera server. I've been able to easily put the buildings in and such. When I try to put some traders, the map marker and the godmode zone it seems the coordinates become incorrect. The coords place the map marker and godmode zone in the ocean at the most southern part of the map. What's weird is that 2/7 traders get placed in the right spot while the others cannot be found. Here's the code I used to put the traders in:

 

Only the first two AI traders spawn in the correct spot...

if (isServer) then {

_unit_1231 = objNull;
if (true) then
{
  _this = createAgent ["GUE_Commander", [5232.6724, 3868.7896, -7.6293945e-006], [], 0, "CAN_COLLIDE"];
  _unit_1231 = _this;
   _this setDir 140.59087;
   _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_1232 = objNull;
if (true) then
{
  _this = createAgent ["Dr_Hladik_EP1", [5255.5122, 3853.0439, 1.9073486e-006], [], 0, "CAN_COLLIDE"];
  _unit_1232 = _this;
   _this setDir 140.59087;
   _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_1233 = objNull;
if (true) then
{
  _this = createAgent ["GUE_Soldier_2", [5221.1, 3853.94, 0.0014019], [], 0, "CAN_COLLIDE"];
  _unit_1233 = _this;
   _this setDir 112.59087;
   _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_1234 = objNull;
if (true) then
{
  _this = createAgent ["Citizen2_EP1", [5253.98, 3861.58, 0.00147247], [], 0, "CAN_COLLIDE"];
  _unit_1234 = _this;
   _this setDir 112.59087;
   _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_1235 = objNull;
if (true) then
{
  _this = createAgent ["ValentinaVictim", [5240.2, 3868.11, 0.00151634], [], 0, "CAN_COLLIDE"];
  _unit_1235 = _this;
   _this setDir 112.59087;
   _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_1236 = objNull;
if (true) then
{
  _this = createAgent ["Soldier_PMC", [5250.09, 3866.76, 0.00148964], [], 0, "CAN_COLLIDE"];
  _unit_1236 = _this;
   _this setDir 112.59087;
   _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_1237 = objNull;
if (true) then
{
  _this = createAgent ["GUE_Woodlander1", [5234.46, 3868.44, 0.00157738], [], 0, "CAN_COLLIDE"];
  _unit_1237 = _this;
   _this setDir 112.59087;
   _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;};
 };

Here's the code for the safezone:

	class Item10
		{
			position[]={4338.8359,101.17657,6317.54};
			a=100;
			b=100;
			activationBy="WEST";
			repeating=1;
			interruptable=1;
			age="UNKNOWN";
			name="TraderCityUkanc";
			expCond="(player distance TraderCityUkanc) < 100; ";
			expActiv="TitleText[""Now Entering Trader City Ukanc"",""PLAIN DOWN""]; canbuild = false;";
			expDesactiv="TitleText[""Now Leaving Trader City Ukanc"",""PLAIN DOWN""]; canbuild = true;";
			class Effects
			{
			};
		};
		class Item11
		{
			position[]={5288.5581, 3820.4824, -0.00012588501};
			a=100;
			b=100;
			activationBy="WEST";
			repeating=1;
			interruptable=1;
			age="UNKNOWN";
			name="TraderCityUkanc_1";
			expCond="(player distance TraderCityUkanc) < 100; ";
			expActiv="TitleText[""Now Entering Trader City Ukanc"",""PLAIN DOWN""]; canbuild = false;";
			expDesactiv="TitleText[""Now Leaving Trader City Ukanc"",""PLAIN DOWN""]; canbuild = true;";
			class Effects
			{
			};
		};

And the map marker:

	class Item23
		{
			position[]={5235.71, 3858.19, 0.00143814};
			name="NeutralTraders";
			text="Trader City Ukanc";
			type="mil_circle";
			colorName="ColorBrown";
		};

Again, it looks like it's just the coords that are not working but please point out anything that needs to be fixed. Thanks =)

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

in the 'mission.sqm' at the class sensors part, 'class Item10' is correct while 'class Item11' is not.

you gotta make sure the format of the coordinates in both the sensors and the map markers is {xxx,zzz,yyy} not {xxx,yyy,zzz}

so 'class Item11' should be

position[]={5288.5581, -0.00012588501, 3820.4824};

and  the map marker you showed us there would be

position[]={5235.71, 0.00143814 ,3858.19};

the coordinates format in the .sqf file that creates the traders is correct, so if they're spawning elsewhere just doubkle check you have yourself the correct coordinates.

Link to comment
Share on other sites

  • 0
_safezones = [   the 60 is just the safezone distance I set  sooo just ignore them 
[[4763.8818,7484.0034],60, "AirVehiclesF], // AWOL's Airfield
[[5232.6299,8228.4785],60, "WholesalerNorth"], // North's Wholesaler
[[9056.7129,4073.5034],60, "HeroVehicles"], // Darren's Hero Vehicles
[[1891.7347,3611.1328],60, "NeutralAirVehicles"], // Bandit Trader
[[3349.3503,2311.5425],60, "Boats"], // Sams Boats
[[8687.3086,3137.5818],60, "NeutralTraders"], // Trader City Selca
[[4422.4429,1629.3304],60, "NeutralTraderCity2"], // Trader City Pikia
[[7224.3823,727.15576],60, "WholesaleSouth"], // South's Wholesaler
[[4338.8359,6317.54],60, "PlanicaTraders"], // Trader City Planica
[[2247.085,9473.3262],60, "IslandVehiclePartsVendors"], // Mello Vehicle/Parts Vendors
[[3804.6707,7656.6055],60, "Boat2"] // North Boat Vendor
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...