fnc_onReloadExternalHandler.sqf 310 B

12345678910
  1. params ["_target", "_magazine", "_ammoAmount"];
  2. {
  3. _turret = _target turretLocal _x;
  4. if(isNil {_turret}) exitWith {
  5. diag_log format["Turret is not local %1", _target];
  6. };
  7. _target removeMagazinesTurret [_magazine, _x];
  8. _target addMagazineTurret [_magazine, _x, _ammoAmount];
  9. } forEach allTurrets _target;