Skip to content

Commit

Permalink
Update fn_spawnStaticWeapon.sqf
Browse files Browse the repository at this point in the history
  • Loading branch information
PiG13BR authored Dec 10, 2024
1 parent 50ebb70 commit 9fd4bf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Missionframework/functions/fn_spawnStaticWeapon.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ _weapon addMPEventHandler ["MPKilled", {
// Infinite ammo.
_weapon addEventHandler ["Reloaded", {
params ["_unit", "_weapon", "_muzzle", "_newMagazine", "_oldMagazine"];
_unit setVehicleAmmo 1;
if !(isPlayer (gunner _unit)) then {_unit setVehicleAmmo 1};
}];

[_weapon] call KPLIB_fnc_clearCargo;
Expand Down

0 comments on commit 9fd4bf1

Please sign in to comment.