Skip to content

Respirator Effects

Mike-MF edited this page Dec 30, 2022 · 9 revisions

This page will explain the usage of the Respirator Effects function.


/*
 * Author: Alganthe, Mike
 * Specified masks protect from a contamination zone while providing HUD/Sound effects.
 * Requires a marker covering an area named "Contamination" for damage to take effect.
 *
 * Call from initPlayerLocal.sqf
 *
 * Arguments:
 * 0: Player <OBJECT>
 *
 * Return Value:
 * None
 *
 * Example:
 * [_player] call MFUNC(respiratorEffects)
 */

Usage

This function adds an overlay and sound effects when wearing gas masks from contact DLC. It only functions once the mask is equipped.

Call from initPlayerLocal.sqf

Example:

[_player] call MFUNC(respiratorEffects);
Clone this wiki locally