From e38eb5c09d0cf2e50335b5306b9f1aa0889051b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Badano?= Date: Sun, 18 Jan 2015 17:56:05 -0300 Subject: [PATCH] fix for fcs --- addons/fcs/functions/fnc_canResetFCS.sqf | 4 ++-- addons/fcs/functions/fnc_canUseFCS.sqf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/fcs/functions/fnc_canResetFCS.sqf b/addons/fcs/functions/fnc_canResetFCS.sqf index 0aa281bd85..8760503cdb 100644 --- a/addons/fcs/functions/fnc_canResetFCS.sqf +++ b/addons/fcs/functions/fnc_canResetFCS.sqf @@ -12,5 +12,5 @@ #include "script_component.hpp" -_player == gunner _vehicle -&& (count (_vehicle getVariable [QGVAR(Magazines), []]) > 1) +ACE_player == gunner vehicle ACE_player +&& (count ((vehicle ACE_player) getVariable [QGVAR(Magazines), []]) > 1) diff --git a/addons/fcs/functions/fnc_canUseFCS.sqf b/addons/fcs/functions/fnc_canUseFCS.sqf index e75efd44cf..ef4a3f2814 100644 --- a/addons/fcs/functions/fnc_canUseFCS.sqf +++ b/addons/fcs/functions/fnc_canUseFCS.sqf @@ -12,6 +12,6 @@ #include "script_component.hpp" -_player == gunner _vehicle -&& {getNumber (configFile >> "CfgVehicles" >> typeOf _vehicle >> QGVAR(Enabled)) == 1} +ACE_player == gunner vehicle ACE_player +&& {getNumber (configFile >> "CfgVehicles" >> typeOf (vehicle ACE_player) >> QGVAR(Enabled)) == 1} && {cameraView == "GUNNER"}