mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
4b42eb4385
* Merge ST Nightvision * Cleanup * Header cleanup * Add ace setting for fog * Cleanup debug * Manual merge refuel changes * Add new setting for effect scaling * Cleanup * Use ace_common_fnc_getZoom * Fix compat inheritance changes * Fix stringtable * Add category * Tidy function headers * Replace global event with remote event
26 lines
473 B
Plaintext
26 lines
473 B
Plaintext
/*
|
|
* Author: Dslyecxi, PabstMirror
|
|
* Refreshes nvg effect if switching NVG goggles.
|
|
*
|
|
* Arguments:
|
|
* 0: Player <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [player] call ace_nightvision_fnc_onLoadoutChange
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
params ["_player"];
|
|
TRACE_1("onLoadoutChange",_player);
|
|
|
|
private _newHMD = hmd _player;
|
|
if (_newHMD != GVAR(playerHMD)) then {
|
|
GVAR(playerHMD) = _newHMD;
|
|
[] call FUNC(refreshGoggleType);
|
|
};
|