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.
Existing MP-compatible script for recovering object missions
- on_certainty
- Posts: 26
- Joined: Sun Oct 12, 2014 11:08 pm
- wolfenswan
- Posts: 1209
- Joined: Wed May 25, 2011 4:59 pm
Re: Existing MP-compatible script for recovering object miss
Maybe this will help:
Put this in a .sqf and ExecVM it via the addAction, attached to the item:
The "DataCollected" notification
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;
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;
};
Folk ARPS Mission Making Template & FAQ
Helpful tools and guides for mission-makers
Our home-brewn scripting guides, snippets and more
My ARMA3 Missions - to download select a branch and pick "Download ZIP".
Helpful tools and guides for mission-makers
Our home-brewn scripting guides, snippets and more
My ARMA3 Missions - to download select a branch and pick "Download ZIP".
- wolfenswan
- Posts: 1209
- Joined: Wed May 25, 2011 4:59 pm
Re: Existing MP-compatible script for recovering object miss
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.
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.
Folk ARPS Mission Making Template & FAQ
Helpful tools and guides for mission-makers
Our home-brewn scripting guides, snippets and more
My ARMA3 Missions - to download select a branch and pick "Download ZIP".
Helpful tools and guides for mission-makers
Our home-brewn scripting guides, snippets and more
My ARMA3 Missions - to download select a branch and pick "Download ZIP".
Re: Existing MP-compatible script for recovering object miss
This would allow Tigershark's mission, Mail Man to be completed, right?
Sent from my iPhone using Tapatalk
Sent from my iPhone using Tapatalk
- wolfenswan
- Posts: 1209
- Joined: Wed May 25, 2011 4:59 pm
Re: Existing MP-compatible script for recovering object miss
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.
Also I think there wasn't a clear consensus how it should be done. Whether it should be random, a zeus mission etc.
Folk ARPS Mission Making Template & FAQ
Helpful tools and guides for mission-makers
Our home-brewn scripting guides, snippets and more
My ARMA3 Missions - to download select a branch and pick "Download ZIP".
Helpful tools and guides for mission-makers
Our home-brewn scripting guides, snippets and more
My ARMA3 Missions - to download select a branch and pick "Download ZIP".
- wolfenswan
- Posts: 1209
- Joined: Wed May 25, 2011 4:59 pm
Re: Existing MP-compatible script for recovering object miss
Finally got around to refactor the script I was talking about.
Folk ARPS Mission Making Template & FAQ
Helpful tools and guides for mission-makers
Our home-brewn scripting guides, snippets and more
My ARMA3 Missions - to download select a branch and pick "Download ZIP".
Helpful tools and guides for mission-makers
Our home-brewn scripting guides, snippets and more
My ARMA3 Missions - to download select a branch and pick "Download ZIP".