Page 1 of 1

Existing MP-compatible script for recovering object missions

Posted: Mon Nov 17, 2014 7:40 pm
by on_certainty
I am working on an adversarial mission with a recover-object type objective (e.g., BLUFOR and OPFOR compete to recover classified documents from the AO). I have a working script for SP, and I was going to start tweaking it for MP.

Just wondering if there is already a working MP-compatible script out there for this so I don't reinvent the wheel? I have not been able to find anything.

Re: Existing MP-compatible script for recovering object miss

Posted: Mon Nov 17, 2014 10:16 pm
by wolfenswan
Maybe this will help:

Put this in a .sqf and ExecVM it via the addAction, attached to the item:

Code: Select all

[
	_this call
	{
		(_this select 0) removeAction (_this select 2);

		if (isServer) then {
			deleteVehicle (_this select 0);
			(_this select 1) addItem "B_UavTerminal"; //Item that will be added to the inventory

                       ws_dataCollected = true; publicVariable "ws_dataCollected";
		};
                
                //Notification to display - change the true to any side to display only for the specific side
		[["DataCollected",[format ["%1",name (_this select 1)]]],"bis_fnc_showNotification",true] spawn BIS_fnc_MP;

	}
,"BIS_fnc_spawn",true] spawn BIS_fnc_MP;
The "DataCollected" notification

Code: Select all

	class DataCollected {
		title= "DATA COLLECTED!";
		description= "%1 has collected the item!";
		iconPicture = "\A3\ui_f\data\map\markers\military\warning_ca.paa";
		duration = 3;
		priority = 5;
	};

Re: Existing MP-compatible script for recovering object miss

Posted: Mon Jan 05, 2015 10:44 am
by wolfenswan
Also, ARMA 3 comes with the so-called "INTEL" items which I think are interactive by default.

Edit: Just checked, it doesn't add a physical item, only a diary entry and needs some fiddling to get to work right without having to be placed by ZEUS.

Re: Existing MP-compatible script for recovering object miss

Posted: Mon Jan 05, 2015 4:48 pm
by fer
This would allow Tigershark's mission, Mail Man to be completed, right?


Sent from my iPhone using Tapatalk

Re: Existing MP-compatible script for recovering object miss

Posted: Mon Jan 05, 2015 5:06 pm
by wolfenswan
We always had the capabilities comrade, just not the spirit.

Also I think there wasn't a clear consensus how it should be done. Whether it should be random, a zeus mission etc.

Re: Existing MP-compatible script for recovering object miss

Posted: Sun Jan 18, 2015 10:57 am
by wolfenswan
Finally got around to refactor the script I was talking about.