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:
Brandon Danyluk 2020-02-22 13:09:15 -07:00 committed by GitHub
parent d6753250d1
commit 5172e7717c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {};