Jump to content

Recommended Posts

Can we still use the call RE , as this worked great in A2 but not in A3 so I was wondering if we can still use the MP framework ?

Any idea why this would not work in A3?

// JIP update on marker colors for MP missions.
if (isMultiplayer) then {
	_ALL_towns_markers spawn {
		private ["_col","_ch","_UIDs","_mar","_brush"];

		_ch = {
			private ["_mar"];
			_mar = _this select 0;
			_mar setMarkerColor (_this select 1);
			_mar setMarkerBrush (_this select 2);
		};

		while {true} do {
			_UIDs = [];
			{if (isPlayer _x) then {_UIDs = _UIDs + [(getPlayerUID _x)]}} foreach playableUnits;
			waitUntil {sleep 1; ({!isNull _x AND alive _x AND isPlayer _x AND !((getPlayerUID _x) in _UIDs)} count playableUnits) != 0};
			{
				_mar = _x; _brush = markerBrush _x; _col = getMarkerColor _x;
				{if (!((getPlayerUID _x) in _UIDs)) then {[nil,_x,rSPAWN,[_mar,_col,_brush],_ch] call RE}} foreach playableUnits;
			} foreach _this;
		};
	};

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×