mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
fix static weapon ammo check (#7541)
For some reason ARMA never returns any muzzle for crewed/non crewed static weapons. Work around this by always returning whatever weapon the static weapon has no matter what
This commit is contained in:
parent
d6753250d1
commit
5172e7717c
@ -42,6 +42,11 @@ if (_target isKindOf "StaticWeapon") then {
|
||||
};
|
||||
} forEach _magazines;
|
||||
};
|
||||
|
||||
// For static weapons the muzzle seemingly never returns anything for static weapons with/without people inside
|
||||
if (_muzzle == "") then {
|
||||
_muzzle = _weapon;
|
||||
};
|
||||
};
|
||||
|
||||
if (_magazine == "") exitWith {};
|
||||
|
Loading…
Reference in New Issue
Block a user