Jump to content
  • 0

totis

Question

3 answers to this question

Recommended Posts

  • 0

Just look at how the markers in WAI are done. That shouldn't be to complicated.
I took a look into that and they are done in "WAI\compile\mission_init.sqf":

Spoiler

	if(_show_marker) then {

		[_position, _color, _name, _mission] spawn {

			private["_position","_color","_name","_running","_mission","_type","_marker","_dot","_text","_airemain"];

			_position	= _this select 0;
			_color 		= _this select 1;
			_name 		= _this select 2;
			_mission 	= _this select 3;
			_running 	= true;
			
			while {_running} do {

				_type	= (wai_mission_data select _mission) select 1;
				
				if (ai_show_remaining) then {
				_airemain	= (wai_mission_data select _mission) select 0;
				_text	= format["%1 [%2 Remaining]",_name,_airemain];
				} else {_text = _name};
				
				_marker 		= createMarker [_type + str(_mission), _position];
				_marker 		setMarkerColor _color;
				_marker 		setMarkerShape "ELLIPSE";
				_marker 		setMarkerBrush "Solid";
				_marker 		setMarkerSize [300,300];
				_marker 		setMarkerText _text;

				_dot 			= createMarker [_type + str(_mission) + "dot", _position];
				_dot 			setMarkerColor "ColorBlack";
				_dot 			setMarkerType "mil_dot";
				_dot 			setMarkerText _text;

				sleep 1;

				deleteMarker 	_marker;
				deleteMarker 	_dot;

				_running = (typeName (wai_mission_data select _mission) == "ARRAY");

			};
		};
	
	};

 

The only difference is that you need a static marker for your trader, means you have to set it in your mission.sqm.

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
  • Discord

×
×
  • Create New...