mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
742626ff1a
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
26 lines
477 B
Plaintext
26 lines
477 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: Dslyecxi, PabstMirror
|
|
* Refreshes nvg effect if switching NVG goggles.
|
|
*
|
|
* Arguments:
|
|
* 0: Player <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [player] call ace_nightvision_fnc_onLoadoutChanged
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
params ["_player"];
|
|
TRACE_1("onLoadoutChange",_player);
|
|
|
|
private _newHMD = hmd _player;
|
|
if (_newHMD != GVAR(playerHMD)) then {
|
|
GVAR(playerHMD) = _newHMD;
|
|
[] call FUNC(refreshGoggleType);
|
|
};
|