Connect Battery To Defusable - Theseus-Aegis/MissionTemplate GitHub Wiki
This page will explain the usage of the Connect Battery To Defusable function.
/*
* Author: Jonpas, Mike
* Requires a Battery to IED setup, handles disconnecting battery from IED and defusing it.
*
* Call from initPlayerLocal.sqf
*
* Arguments
* 0: Battery <OBJECT>
* 1: Defusable Explosive <OBJECT>
*
* Return Value:
* None
*
* Example:
* [Battery, IED] call MFUNC(connectBatteryToDefusable);
*/
This allows you to "connect" an explosive to another object i.e Laptops. The explosive can then be defused by interacting with the laptop instead.
Call from initPlayerLocal.sqf
Example:
[Connected Object, Explosive] call MFUNC(connectBatteryToDefusable);