Skip to content

Commit

Permalink
Clear all items from killer stash box before filling it
Browse files Browse the repository at this point in the history
  • Loading branch information
3Mydlo3 committed Jan 10, 2024
1 parent 42b64ec commit 02ca824
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions addons/killers/functions/fnc_initKillersStashes.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 02ca824

Please sign in to comment.