forked from Nifnat/Overthrow
-
-
Notifications
You must be signed in to change notification settings - Fork 10
Mission framework
ThomasAngel edited this page Apr 15, 2022
·
2 revisions
Mission framework
Overthrow features a framework for developers to add new missions.
The first thing a custom mission needs is a file in the missions folder. Inside this file should, in minimum, be the mission array required by Overthrow. Let's use HVT as an example:
[
// Title and description
[_title,_description],
// Position for marker
_markerPos,
{
// Setup
true
},
{
// Failure condition
false
},
{
// Success condition
params ["_base","_id"];
_found = false;
{
if((_x select 0) isEqualTo _id) exitWith {_found = true};
}foreach(OT_NATOhvts);
!_found
},
{
// On mission completion
},
// Additional parameters
_params
];
Using this as a foundation, it is easy to add new missions to Overthrow. Remember to implement the mission so it is available to players through an NPC.