Skip to content

Commit

Permalink
Allow Attach Flag module to be used with flagpoles (#749)
Browse files Browse the repository at this point in the history
  • Loading branch information
Apricot-ale authored Mar 25, 2024
1 parent 6323d01 commit 0e9f858
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/modules/functions/fnc_moduleAttachFlag.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
3 changes: 3 additions & 0 deletions addons/modules/stringtable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3441,6 +3441,9 @@
<Chinese>單位必須是載具</Chinese>
<Japanese>ユニットは車両である必要があります</Japanese>
</Key>
<Key ID="STR_ZEN_Modules_OnlyVehiclesOrFlags">
<English>Unit must be a vehicle or flag</English>
</Key>
<Key ID="STR_ZEN_Modules_OnlyAircraft">
<English>The unit must be an aircraft</English>
<Russian>Применимо только к воздушной технике</Russian>
Expand Down

0 comments on commit 0e9f858

Please sign in to comment.