From 02ca82427f7dd30196c203c2521a481fe741d657 Mon Sep 17 00:00:00 2001 From: 3Mydlo3 Date: Wed, 10 Jan 2024 22:18:15 +0100 Subject: [PATCH] Clear all items from killer stash box before filling it --- addons/killers/functions/fnc_initKillersStashes.sqf | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/killers/functions/fnc_initKillersStashes.sqf b/addons/killers/functions/fnc_initKillersStashes.sqf index c539066f..51cfc261 100644 --- a/addons/killers/functions/fnc_initKillersStashes.sqf +++ b/addons/killers/functions/fnc_initKillersStashes.sqf @@ -28,6 +28,7 @@ for "_y" from 0 to _createStatshesCount step 1 do { private _stash = _stashes deleteAt (floor (random (count (_stashes)))); private _stashPos = getPos _stash; private _box = createVehicle ["O_CargoNet_01_ammo_F", _stashPos, [], 0, "NONE"]; + clearItemCargoGlobal _box; _box setVariable [QGVAR(killersStash), _stash]; _stash setVariable [QGVAR(box), _box]; _box call FUNC(fillKillersStash);