FORGE - Defuse Task

Defuse Task Module

Description

This module adds support for Defuse Tasks/Missions.

The mission maker must define IEDs and objects, the framework will monitor the status of those IEDs and objects.

A threshold must be set, specifying a given amount of IEDs that have to be defused, and the number of objects that need to survive in order to complete the task.

The module can also trigger mission complete or mission fail.

Usage

Setup IED(s)

  1. Setup the Defuse Task set
  2. Place down the IED object(s)
  3. Spawn the forge_client_task_fnc_makeIED function within the IEDs' init field that links the IED to the Defuse Task
// Arguments:
//  0: OBJECT - The IED object
//  1: STRING - The ID of the task
//  2: NUMBER - The Countdown Timer

// Example:
    [this, "task_name", 30] spawn forge_client_task_fnc_makeIED;
  1. Place down the object(s)
  2. Call the forge_client_task_fnc_makeObject function within the objects' init field that links the object to the Defuse Task
// Arguments:
//  0: OBJECT - The Object
//  1: STRING - The ID of the task

// Example:
    [this, "task_name"] call forge_client_task_fnc_makeObject;

Register Task

  1. Register the Defuse Task by calling the forge_client_task_fnc_defuse function in the init field of the task
// Arguments:
//  0: STRING - ID of the task
//  1: SCALAR - Number of entities destroyed to fail the task
//  2: SCALAR - Number of ieds to defuse to complete the task
//  3: SCALAR - Amount of funds the company recieves if the task is successful (default: 0)
//  4: SCALAR - Amount of rating the company and player lose if the task is failed (default: 0)
//  5: SCALAR - Amount of rating the company and player recieve if the task is successful (default: 0)
//  6: BOOLEAN - Should the mission end (MissionSuccess) if the task is successful (Optional, default: false)
//  7: BOOLEAN - Should the mission end (MissionFailed) if the task is failed (Optional, default: false)

// Example:
    ["task_name", 2, 3, 375000, -75, 300, false, false] spawn forge_client_task_fnc_defuse;

Home | Attack Module | Defuse Module | Destroy Module | Hostage Module | HVT Module