tow fix, fix breech making everyone unable to shoot

This commit is contained in:
Sotirios Pupakis
2024-04-29 21:08:10 +02:00
parent 3c2d1d24ec
commit 553562e577
3 changed files with 3 additions and 3 deletions

View File

@@ -3,7 +3,7 @@
class CfgPatches {
class ADDON {
name = QUOTE(COMPONENT);
units[] = {QUOTE(TBD_2B9_VASILEK), QUOTE(TBD_2B9_VASILEK_MAGAZINE)};
units[] = {QUOTE(TBD_M119)};
weapons[] = {};
requiredVersion = 2.04;
requiredAddons[] = {"cba_main", "ace_interact_menu", "tbd_mortars_main"};

View File

@@ -43,5 +43,5 @@ _arty addAction [
false,
false,
"defaultAction",
'_target getVariable [(QGVAR(breech)),false]'
'_target getVariable [(QGVAR(breech)),false] && vehicle player == _target'
];

View File

@@ -51,4 +51,4 @@ private _canBeTowed = false;
} forEach _vehicles;
_arty setVariable [QGVAR(towed), true, true];
[QGVAR(towed), [_vasil], QGVAR(towJIP)] call CBA_fnc_globalEventJIP;
[QGVAR(towed), [_arty], QGVAR(towJIP)] call CBA_fnc_globalEventJIP;