Jump to content
  • 0

Markers


Renegade2k6

Question

Just wondering what is gonna be the best way to load these markers on server startup.

class _marker_0
{
	objectType="marker";
	class Arguments
	{
		POSITION="[24.742874, 1593.1036, 0]";
		NAME="a";
		TYPE="Empty";
		FILL="Solid";
	};
};
class _marker_1
{
	objectType="marker";
	class Arguments
	{
		POSITION="[225.71143, 1625.5308, 0]";
		NAME="a_1";
		TYPE="Empty";
		FILL="Solid";
	};
};
class _marker_2
{
	objectType="marker";
	class Arguments
	{
		POSITION="[311.90799, 1628.7754, 0]";
		NAME="a_2";
		TYPE="Empty";
		FILL="Solid";
	};
};
class _marker_3
{
	objectType="marker";
	class Arguments
	{
		POSITION="[370.09299, 1627.8351, 0]";
		NAME="a_3";
		TYPE="Empty";
		FILL="Solid";
	};
};
class _marker_4
{
	objectType="marker";
	class Arguments
	{
		POSITION="[401.48846, 1630.5605, 0]";
		NAME="a_4";
		TYPE="Empty";
		FILL="Solid";
	};
};
class _marker_5
{
	objectType="marker";
	class Arguments
	{
		POSITION="[434.43488, 1638.4561, 0]";
		NAME="a_5";
		TYPE="Empty";
		FILL="Solid";
	};
};
class _marker_6
{
	objectType="marker";
	class Arguments
	{
		POSITION="[452.01257, 1645.036, 0]";
		NAME="a_6";
		TYPE="Empty";
		FILL="Solid";
	};
};
class _marker_7
{
	objectType="marker";
	class Arguments
	{
		POSITION="[474.14923, 1656.6449, 0]";
		NAME="a_7";
		TYPE="Empty";
		FILL="Solid";
	};
};
class _marker_8
{
	objectType="marker";
	class Arguments
	{
		POSITION="[488.155, 1666.8896, 0]";
		NAME="a_8";
		TYPE="Empty";
		FILL="Solid";
	};
};
class _marker_9
{
	objectType="marker";
	class Arguments
	{
		POSITION="[730.81219, 1895.3998, 0]";
		NAME="a_9";
		TYPE="Empty";
		FILL="Solid";
	};
};

looked in the mission .sqm and couldnt figure if I should stick them in there.

 

or just call them in the init


_this = createMarker ["a", [24.742874, 1593.1036, 0]];
_this setMarkerType "Empty";
_this setMarkerBrush "Solid";
_marker_0 = _this;

_this = createMarker ["a_1", [225.71143, 1625.5308, 0]];
_this setMarkerType "Empty";
_this setMarkerBrush "Solid";
_marker_1 = _this;

_this = createMarker ["a_2", [311.90799, 1628.7754, 0]];
_this setMarkerType "Empty";
_this setMarkerBrush "Solid";
_marker_2 = _this;

_this = createMarker ["a_3", [370.09299, 1627.8351, 0]];
_this setMarkerType "Empty";
_this setMarkerBrush "Solid";
_marker_3 = _this;

_this = createMarker ["a_4", [401.48846, 1630.5605, 0]];
_this setMarkerType "Empty";
_this setMarkerBrush "Solid";
_marker_4 = _this;

_this = createMarker ["a_5", [434.43488, 1638.4561, 0]];
_this setMarkerType "Empty";
_this setMarkerBrush "Solid";
_marker_5 = _this;

_this = createMarker ["a_6", [452.01257, 1645.036, 0]];
_this setMarkerType "Empty";
_this setMarkerBrush "Solid";
_marker_6 = _this;

_this = createMarker ["a_7", [474.14923, 1656.6449, 0]];
_this setMarkerType "Empty";
_this setMarkerBrush "Solid";
_marker_7 = _this;

_this = createMarker ["a_8", [488.155, 1666.8896, 0]];
_this setMarkerType "Empty";
_this setMarkerBrush "Solid";
_marker_8 = _this;

_this = createMarker ["a_9", [730.81219, 1895.3998, 0]];
_this setMarkerType "Empty";
_this setMarkerBrush "Solid";
_marker_9 = _this;

Any help appreciated.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Thought that would be best but unsure where in the sqm to stick them.

 

Do I stick them in the section class Markers and change the class _marker_1 to class Item16 and carry on the sequence?

 

indeed but dont forget to update your items counter too

 

 items=17;

 

so if the last marker you add is _marker_21

You put items at 22 (including 0)

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...