Jump to content
Sign in to follow this  
1para{god-father}

Help with Script working in A2 but ont in A3

Recommended Posts

This part of script was working in A2 but it does not seem to work in A3

Any idea why ? (all I changewas "Call re" to "BIS_fnc_MP") But still no Joy




// Now 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 BIS_fnc_MP}} foreach playableUnits;
			} foreach _this;
		};
	};
};

Share this post


Link to post
Share on other sites

The parms passed to the call are totally different for fnc_MP than they were for RE. Plus im not sure you use the r-commands with MP anymore, seems like you either need to call a BIS_fnc or one of your own.

RE

[nil_or_caller, nil_or_target_object,"loc", script_to_execute, par0, par1...] call RE;

MP

[params, functionName, target, isPersistent] spawn BIS_fnc_MP;

SEE THIS in WIKI

Edited by Larrow

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  

×