Existing MP-compatible script for recovering object missions

Workshop for all Mission Engineer Comrades. Home of the FA Mission Making Template.
Post Reply
User avatar
on_certainty
Posts: 26
Joined: Sun Oct 12, 2014 11:08 pm

Existing MP-compatible script for recovering object missions

Post 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.

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

Re: Existing MP-compatible script for recovering object miss

Post 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;
	};

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

Re: Existing MP-compatible script for recovering object miss

Post 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.

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

Re: Existing MP-compatible script for recovering object miss

Post by fer »

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


Sent from my iPhone using Tapatalk

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

Re: Existing MP-compatible script for recovering object miss

Post 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.


Post Reply