Toggle Lights - Theseus-Aegis/MissionTemplate GitHub Wiki

This page will explain the usage of the Toggle Lights function.


/*
 * Author: Muta, Mike
 * Switches Lights on or off in a defined radius.
 * Call from init.sqf or Trigger.
 *
 * Arguments:
 * 0: Marker <STRING>
 * 1: Radius <NUMBER>
 * 2: On <BOOL>
 *
 * Return Value:
 * None
 *
 * Example:
 * ["LightsOut", 500, true] call MFUNC(toggleLights)
 * ["LightsOut2", 250, false] call MFUNC(toggleLights)
 */

Usage

This function will turn all lights ON/OFF in a set radius around a provided Marker.

Note: Does not always work flawlessly, especially with CUP Buildings.

Called Globally from a trigger or via init.sqf

Example:

["MyMarker", 1000, true] call MFUNC(toggleLights);
["MyMarker", 2000, false] call TAC_Mission_fnc_toggleLights;
⚠️ **GitHub.com Fallback** ⚠️