mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Add check so vanilla magazines can't be unloaded
This commit is contained in:
parent
560c509a3a
commit
74d410688f
@ -19,7 +19,7 @@
|
|||||||
params ["_static","_unit"];
|
params ["_static","_unit"];
|
||||||
private ["_canUnloadMagazine","_ammoCount"];
|
private ["_canUnloadMagazine","_ammoCount"];
|
||||||
|
|
||||||
if !(alive _static && GVAR(useAmmoHandling)) exitWith {false};
|
if !(alive _static && GVAR(useAmmoHandling) && _static getVariable [QGVAR(initialized),false]) exitWith {false};
|
||||||
_canUnloadMagazine = false;
|
_canUnloadMagazine = false;
|
||||||
|
|
||||||
_ammoCount = ((magazinesAllTurrets _static) select 1) select 2;
|
_ammoCount = ((magazinesAllTurrets _static) select 1) select 2;
|
||||||
|
Loading…
Reference in New Issue
Block a user