Skip to content

Reinforcement Waves

Mike-MF edited this page May 5, 2023 · 2 revisions

This page will explain the usage of the Reinforcement Waves function.


/*
 * Author: Mike
 * Unhides reinforcements in waves set by a timer.
 * Call from initServer.sqf
 *
 * Arguments:
 * 0: Groups <ARRAY>
 * 1: Time between groups <NUMBER>
 *
 * Return Value:
 * None
 *
 * Example:
 * [[Test_Group_1, Test_Group_2], 10] call MFUNC(reinforcementWaves)
 * [MY_GROUP_ARRAY, 20] call MFUNC(reinforcementWaves);
 */

Usage

Example:

if (isServer) then {
    [[Test_Group_1, Test_Group_2], 10] call TAC_Mission_fnc_reinforcementWaves;
};

Must be called with Server execution, wrapped in an isServer check or called immediately from initServer.sqf

Clone this wiki locally