Chemical Detector - Theseus-Aegis/MissionTemplate GitHub Wiki

This page will explain the usage of the Chemical Detector function.


/*
 * Author: Mike
 * Adds the chemical detector capability of detecting when inside a dangerous zone.
 * Sounds played are done via playSoundUI so they can be altered via slider in game options.
 * Requires ChemicalDetector_01_watch_F from contact platform update.
 *
 * Call from initPlayerLocal.sqf
 *
 * Arguments:
 * 0: Markers <ARRAY>
 * 1: Enable Geiger Sounds <BOOL> (default: false)
 *
 * Return Value:
 * None
 *
 * Example:
 * [["MyMarker"], true] call MFUNC(chemicalDetector)
 */

Usage

This function will give the in-game Chemical Watch Item (ChemicalDetector_01_watch_F) functionality which can be used alongside the Contamination Gas & Respirator Effects functions.

It will play Gieger sounds via UI sound channel along with increasing the numerical value the closer you get to the center of the provider marker(s).

Called from initPlayerLocal.sqf

Example:

[["MyMarker"], true] call MFUNC(chemicalDetector);
⚠️ **GitHub.com Fallback** ⚠️