Jump to content
  • 0

Spawn points with static traders.


tinboye

Question

So just playing around with my server a bit.

 

What i am trying to achieve is to have 3 spawn points  east, west, central
on the map to have east as UK, West as RU and central as US with their flags

 

so here is what i have so far:

 

in my altis.h  I changed it to only have 3 traders total, 1 for each country.

staticNpcPos[] = {
			// tradercity 1 central
			{ "C_Orestes", { 13318, 14518.3, 0 }, 173.189 },
			
			// tradercity 2 eastern
			{ "C_man_hunter_1_F", { 6177.13, 16835.1, 0.0014267 }, 66.2026 },
			
			// tradercity 3 west
			{ "C_scientist_F", { 18441.7, 14271.7, 0.00142479 }, 49.9898 }
	};

then in my mission.sqf i have the following

class Vehicles
    {
        items=4;
		class Item0
		{
			position[] = {23594.1,-0.734546,18013};
			azimut = 180;	
			id = 101;		
			side = "EMPTY";
            vehicle = "Land_Billboard_F";
			skill=0.60000002;
			init = "this setObjectTexture [0,""Images\East.jpg""]";
		};
		
		class Item1
		{
			position[] = {23606.8,-0.734546,18013};
			azimut = 180;	
			id = 101;			
			side = "EMPTY";
            vehicle = "Land_Billboard_F";
			skill=0.60000002;
			init = "this setObjectTexture [0,""Images\Central.jpg""]";
		};
		class Item2
		{
			position[] = {23613,-0.734546,18013};
			azimut = 180;	
			id = 101;			
			side = "EMPTY";
            vehicle = "Land_Billboard_F";
			skill=0.60000002;
			init = "this setObjectTexture [0,""Images\West.jpg""]";		
		};
		class Item3
        {
            position[] = {23599.8, -0.0250053,17997.8 };
            azimut = 0;
            id=102;
            side="EMPTY";
            vehicle="O_supplyCrate_F";
            skill=0.6;
            init="clearMagazineCargoGlobal this;  clearWeaponCargoGlobal this;  clearItemCargoGlobal this; clearAllItemsFromBackpack this; clearBackpackCargoGlobal this; this addAction[""<t color='#D11313'>It's dangerous to go alone! Take this!</t>"", ""addons\loadoutspawn.sqf""];";
 		};
	};
	class Markers
	{
		items=6;
		class Item0
		{
			position[] = {13326.5,0,14515.2,15083.272};
			name = "center";
			type = "Empty";
		};
		class Item1
		{
			position[] = {6192.46, 16834,18000.72};
			name = "respawn_east";
			type = "Empty";
		};
		class Item2
		{
			position[] = {18451.9, 14278.1,18000.768};
			name = "respawn_west";
			type = "Empty";
		};
		class Item3
		{
			position[]={13326.5,0,14515.2};
			name="centraltraderspawn";
			text="US Trader";
			type="flag_USA";
		};	
		class Item4
		{
			position[]={6192.46, 16834};
			name="easterntraderspawn";
			text="UK Trader";
			type="flag_UK";
		};	

		class Item5
		{
			position[]={18451.9, 14278.1};
			name="westerntraderspawn";
			text="SWE Trader";
			type="Flag_RU";
		};			
	};
	class Sensors
	{
		items=3;
		class Item0
		{
			position[]={13321.2,-0.127439,14504.7};
			a=65;
			b=65;
			activationBy="ANY";
			repeating=1;
			interruptable=1;
			age="UNKNOWN";
			name="centralsafezone";
			expCond = "(player) in thislist;(vehicle player) in thislist;";
			expActiv="hint ""You have entered The US Safe Zone! Do not fire in Safe Zones."";";
			expDesactiv="hint ""You are leaving the Safe Zone!"";";
			class Effects
			{
			};
		};
		class Item1
		{
			position[]={18454.9,0.148972,14272.8};
			a=100;
			b=100;
			activationBy="ANY";
			repeating=1;
			interruptable=1;
			age="UNKNOWN";
			name="westernsafezone";
			expCond = "(player) in thislist;(vehicle player) in thislist;";
			expActiv="hint ""You have entered The RU Safe Zone! Do not fire in Safe Zones."";";
			expDesactiv="hint ""You are leaving the Safe Zone!"";";
			class Effects
			{
			};
		};
		class Item2
		{
			position[]={6193.35,-0.210175,16834};
			a=65;
			b=65;
			activationBy="ANY";
			repeating=1;
			interruptable=1;
			age="UNKNOWN";
			name="easternsafezone";
			expCond = "(player) in thislist;(vehicle player) in thislist;";
			expActiv="hint ""You have entered The UK Safe Zone! Do not fire in Safe Zones."";";
			expDesactiv="hint ""You are leaving the Safe Zone!"";";
			class Effects
			{
			};
		};
	};
};

the problem im having is that when at the cloning center, it does not show the teleporters, and just shows trees in the walls.

 

any ideas?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

I will use central as an example:

you are defining XYZ position in an include file... correctly:

{ "C_Orestes", { 13318, 14518.3, 0 }, 173.189 },

SQM coords works as XZY, but you are trying to use same coords... simply swap the Y and Z parts around and it should work fine. 

On top of that some of your location coordinates have array of 4 elements, this is wrong, it can only take 3 elements - {1,2,3}, so you will have to remove extra element.

 

WRONG:

		class Item0
		{
			position[] = {13326.5,0,14515.2,15083.272};
			name = "center";
			type = "Empty";
		};

CORRECT:

		class Item0
		{
			position[] = {13326.5,0,14515.2}; //Z can be safely 0 most of times
			name = "center";
			type = "Empty";
		};
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...