Skip to content

Connect Battery To Defusable

Mike-MF edited this page Dec 24, 2022 · 1 revision

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);
 */

Usage

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);
Clone this wiki locally