From 9cef8ea591a6734d3e4b8e8560eb5e6b978a69b1 Mon Sep 17 00:00:00 2001 From: BaerMitUmlaut Date: Tue, 17 Jan 2017 21:35:12 +0100 Subject: [PATCH] Save pain next tick in GVAR instead of on unit --- addons/medical_ui/functions/fnc_effectPain.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/medical_ui/functions/fnc_effectPain.sqf b/addons/medical_ui/functions/fnc_effectPain.sqf index bafa29f6ba..3a543c166e 100644 --- a/addons/medical_ui/functions/fnc_effectPain.sqf +++ b/addons/medical_ui/functions/fnc_effectPain.sqf @@ -18,8 +18,8 @@ if (!_enable) exitWith { GVAR(ppPain) ppEffectEnable true; // Trigger effect every 2s -private _showNextTick = ACE_player getVariable [QGVAR(showPainNextTick), true]; -ACE_player setVariable [QGVAR(showPainNextTick), !_showNextTick]; +private _showNextTick = missionNamespace getVariable [QGVAR(showPainNextTick), true]; +GVAR(showPainNextTick) = !_showNextTick; if (_showNextTick) exitWith {}; private _initialAdjust = [];