Ground Fog - Theseus-Aegis/MissionTemplate GitHub Wiki

This page will explain the usage of the Ground Fog function.


/*
 * Author: Kaysi, Kresky, Jonpas, Mike
 * Adds ground fog.
 *
 * Call from initPlayerLocal.sqf.
 *
 * Arguments:
 * 0: Player <OBJECT>
 * 1: Colour RGBA <ARRAY>
 * 2: Condition <CODE> (default: true)
 *
 * Return Value:
 * None
 *
 * Example:
 * [_player] call MFUNC(groundFog)
 * [_player, [1, 1, 1, 0.04], {TAC_Example}] call MFUNC(groundFog)
 */

Usage

This function creates thick moving fog locally around the player for a nice ambient experience.

The colour can be edited in RGBA format, although changing the alpha from 0.04 is absolutely not recommended.

Call from initPlayerLocal.sqf

Example:

[_player] call MFUNC(groundFog);
⚠️ **GitHub.com Fallback** ⚠️