diff --git a/cScripts/functions/systems/fn_addHeal.sqf b/cScripts/functions/systems/fn_addHeal.sqf index 1b02e2b09..5518fd375 100644 --- a/cScripts/functions/systems/fn_addHeal.sqf +++ b/cScripts/functions/systems/fn_addHeal.sqf @@ -31,7 +31,7 @@ private _healStatement = { [[],["You have been healed"], [""], [""]] call CBA_fnc_notify; }; -private _actionType = if (isPlayer _object) then {1} else {0}; +private _actionType = parseNumber (isPlayer _object); private _healAction = [QEGVAR(Actions,HealAction), "Heal", "\z\ACE\addons\medical_gui\ui\cross.paa", _healStatement, {!GVAR(OneLife)}] call ace_interact_menu_fnc_createAction; [_object, _actionType, _category, _healAction] call ace_interact_menu_fnc_addActionToObject; diff --git a/cScripts/functions/systems/fn_addInsigniaSelection.sqf b/cScripts/functions/systems/fn_addInsigniaSelection.sqf index 76b141504..261b72af7 100644 --- a/cScripts/functions/systems/fn_addInsigniaSelection.sqf +++ b/cScripts/functions/systems/fn_addInsigniaSelection.sqf @@ -48,5 +48,5 @@ private _insigniaSelection = [format ["cScriptInsigniaSelection_%1", _className] [player, _className] call EFUNC(unit,setInsignia); }, {true}, {}, [_className]] call ace_interact_menu_fnc_createAction; -private _actionType = if (isPlayer _object) then {1} else {0}; +private _actionType = parseNumber (isPlayer _object); [_object, _actionType, _category, _insigniaSelection] call ace_interact_menu_fnc_addActionToObject; diff --git a/cScripts/functions/systems/fn_addLoadoutSelection.sqf b/cScripts/functions/systems/fn_addLoadoutSelection.sqf index 53a883f9a..8c2da6b39 100644 --- a/cScripts/functions/systems/fn_addLoadoutSelection.sqf +++ b/cScripts/functions/systems/fn_addLoadoutSelection.sqf @@ -46,7 +46,7 @@ private _action = [format ["cScripts_Loadout_%1", _className], _lable, _icon, { [player, _className] call EFUNC(gear,applyLoadout); }, _condition, {}, [_className, _company, _allowAllLoadouts]] call ace_interact_menu_fnc_createAction; -private _actionType = if (isPlayer _object) then {1} else {0}; +private _actionType = parseNumber (isPlayer _object); [_object, _actionType, _category, _action] call ace_interact_menu_fnc_addActionToObject; INFO_4("LoadoutSelector", "%1; selector '%2' with type %3 added for '%4' crate.", _object, _lable, _actionType, _company); diff --git a/cScripts/functions/systems/fn_addReGear.sqf b/cScripts/functions/systems/fn_addReGear.sqf index e129dd0c4..ddc8d4562 100644 --- a/cScripts/functions/systems/fn_addReGear.sqf +++ b/cScripts/functions/systems/fn_addReGear.sqf @@ -33,7 +33,7 @@ private _regearStatement = { [QEGVAR(gear,applyLoadout)] call CBA_fnc_localEvent; [[],["You have been rearmed"], [""], [""]] call CBA_fnc_notify; }; -private _actionType = if (isPlayer _object) then {1} else {0}; +private _actionType = parseNumber (isPlayer _object); private _regearAction = ["cScriptsReGearAce", "ReGear", _Icon, _regearStatement, {true}] call ace_interact_menu_fnc_createAction; [_object, _actionType, _category, _regearAction] call ace_interact_menu_fnc_addActionToObject; diff --git a/cScripts/functions/systems/fn_createActionCategory.sqf b/cScripts/functions/systems/fn_createActionCategory.sqf index a2781d7b4..c20111a76 100644 --- a/cScripts/functions/systems/fn_createActionCategory.sqf +++ b/cScripts/functions/systems/fn_createActionCategory.sqf @@ -27,5 +27,5 @@ params [ // Make ACE Category private _aceInteractionAction = [_name, _lable, _Icon, {}, _condition] call ace_interact_menu_fnc_createAction; -private _actionType = if (isPlayer _object) then {1} else {0}; +private _actionType = parseNumber (isPlayer _object); [_object, _actionType, _category, _aceInteractionAction] call ace_interact_menu_fnc_addActionToObject;