From 2c4cc245ec28d0293dc193ab7e56a365ab87b69e Mon Sep 17 00:00:00 2001 From: mazinskihenry <33608576+mazinskihenry@users.noreply.github.com> Date: Mon, 2 Dec 2024 11:15:56 -0800 Subject: [PATCH] Fix condition --- addons/breathing/CfgVehicles.hpp | 4 ++-- addons/breathing/functions/fnc_checkAircraftOxygen.sqf | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/breathing/CfgVehicles.hpp b/addons/breathing/CfgVehicles.hpp index 83055bc19..856ec8b75 100644 --- a/addons/breathing/CfgVehicles.hpp +++ b/addons/breathing/CfgVehicles.hpp @@ -176,7 +176,7 @@ class CfgVehicles { class ACE_SelfActions { class KAT_AttachOxygenVehicle { displayName = CSTRING(AttachOxygenVehicle); - condition = QUOTE(([ARR_2(_target,_player)] call FUNC(checkAircraftOxygen)) && (_player call EFUNC(airway,checkMask))); + condition = QUOTE(((_player call FUNC(checkAircraftOxygen)) && (_player call EFUNC(airway,checkMask))); statement = QUOTE(_player call FUNC(attachVehicleOxygen)); insertChildren = ""; exceptions[] = {}; @@ -189,7 +189,7 @@ class CfgVehicles { class ACE_SelfActions { class KAT_AttachOxygenVehicle { displayName = CSTRING(AttachOxygenVehicle); - condition = QUOTE((call FUNC(checkAircraftOxygen)) && (_player call EFUNC(airway,checkMask))); + condition = QUOTE(((_player call FUNC(checkAircraftOxygen)) && (_player call EFUNC(airway,checkMask))); statement = QUOTE(_player call FUNC(attachVehicleOxygen)); insertChildren = ""; exceptions[] = {}; diff --git a/addons/breathing/functions/fnc_checkAircraftOxygen.sqf b/addons/breathing/functions/fnc_checkAircraftOxygen.sqf index 9f9aa6da7..befe580b5 100644 --- a/addons/breathing/functions/fnc_checkAircraftOxygen.sqf +++ b/addons/breathing/functions/fnc_checkAircraftOxygen.sqf @@ -16,7 +16,7 @@ * Public: No */ -params ["_vehicle", "_patient"]; +params ["_patient"]; if (isNull objectParent _patient) exitWith { false