-
Notifications
You must be signed in to change notification settings - Fork 1
Chemical Detector
Mike-MF edited this page Oct 29, 2024
·
2 revisions
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)
*/
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);
Pages
- Home
- Your First Mission
- Creating A Mission
- Contract Missions
- Difficulty Guidelines
-
Functions Library
- Base Spectator
- Bomber
- Car Alarm
- Chemical Detector
- Collect Intel
- Connect Battery To Defusable
- Contamination Gas
- Count Alive
- Dialogue
- Disable AI
- Download Intel
- Earthquake
- Enable AI
- Force Shooting
- Ground Fog
- Hunt
- Lock Doors
- Mark Buildings
- Monitor Units
- Mortar Strike
- Ping
- Players
- Reaction
- Reinforcements
- Reinforcement Waves
- Respirator Effects
- Set Sleeping
- Sound Source
- Surrender
- Switch Action
- Teleport
- Toggle Lights
- Trigger Area
- Helicopters
- Resources
- Quality Checklist
- Useful Commands
- ArmaQDL