From 0e9f85853dd187940dedbff5876a959b3d26c88a Mon Sep 17 00:00:00 2001 From: Apricot <50947830+Apricot-ale@users.noreply.github.com> Date: Tue, 26 Mar 2024 02:53:09 +0900 Subject: [PATCH] Allow Attach Flag module to be used with flagpoles (#749) --- addons/modules/functions/fnc_moduleAttachFlag.sqf | 4 ++-- addons/modules/stringtable.xml | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/addons/modules/functions/fnc_moduleAttachFlag.sqf b/addons/modules/functions/fnc_moduleAttachFlag.sqf index aa5be5f29..217c6a6ed 100644 --- a/addons/modules/functions/fnc_moduleAttachFlag.sqf +++ b/addons/modules/functions/fnc_moduleAttachFlag.sqf @@ -28,8 +28,8 @@ if !(alive _object) exitWith { [LSTRING(OnlyAlive)] call EFUNC(common,showMessage); }; -if !(_object isKindOf "AllVehicles") exitWith { - [LSTRING(OnlyVehicles)] call EFUNC(common,showMessage); +if !(_object isKindOf "AllVehicles" || {_object isKindOf "FlagCarrier"}) exitWith { + [LSTRING(OnlyVehiclesOrFlags)] call EFUNC(common,showMessage); }; private _flagsCache = +(uiNamespace getVariable QGVAR(flagsCache)); diff --git a/addons/modules/stringtable.xml b/addons/modules/stringtable.xml index b83f4819c..a81d0304e 100644 --- a/addons/modules/stringtable.xml +++ b/addons/modules/stringtable.xml @@ -3441,6 +3441,9 @@ 單位必須是載具 ユニットは車両である必要があります + + Unit must be a vehicle or flag + The unit must be an aircraft Применимо только к воздушной технике