Existing MP-compatible script for recovering object missions

Where Mission Engineer Comrades and the FA Mission Making Template lived
Post Reply
User avatar
on_certainty
Posts: 23
Joined: Sun Oct 12, 2014 11:08 pm

Existing MP-compatible script for recovering object missions

Post by on_certainty » Mon Nov 17, 2014 7:40 pm

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.

User avatar
wolfenswan
Posts: 1238
Joined: Wed May 25, 2011 4:59 pm

Re: Existing MP-compatible script for recovering object miss

Post by wolfenswan » Mon Nov 17, 2014 10:16 pm

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;
	};
My ARMA3 Missions - to download select a branch and pick "Download ZIP".

User avatar
wolfenswan
Posts: 1238
Joined: Wed May 25, 2011 4:59 pm

Re: Existing MP-compatible script for recovering object miss

Post by wolfenswan » Mon Jan 05, 2015 10:44 am

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.
My ARMA3 Missions - to download select a branch and pick "Download ZIP".

User avatar
fer
Host
Posts: 1709
Joined: Fri Jun 04, 2010 8:16 am
Location: Emotional wreck

Re: Existing MP-compatible script for recovering object miss

Post by fer » Mon Jan 05, 2015 4:48 pm

This would allow Tigershark's mission, Mail Man to be completed, right?


Sent from my iPhone using Tapatalk

User avatar
wolfenswan
Posts: 1238
Joined: Wed May 25, 2011 4:59 pm

Re: Existing MP-compatible script for recovering object miss

Post by wolfenswan » Mon Jan 05, 2015 5:06 pm

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.
My ARMA3 Missions - to download select a branch and pick "Download ZIP".

User avatar
wolfenswan
Posts: 1238
Joined: Wed May 25, 2011 4:59 pm

Re: Existing MP-compatible script for recovering object miss

Post by wolfenswan » Sun Jan 18, 2015 10:57 am

Finally got around to refactor the script I was talking about.
My ARMA3 Missions - to download select a branch and pick "Download ZIP".

Post Reply