Skip to content

Commit

Permalink
Fix stash position and direction not being forced (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
3Mydlo3 authored Mar 21, 2024
1 parent 39228c8 commit 1326641
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addons/killers/functions/fnc_initKillersStashes.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ private _createStatshesCount = ceil (random [_stashesCount/2, _stashesCount/1.33
for "_y" from 0 to _createStatshesCount step 1 do {
private _stash = _stashes deleteAt (floor (random (count (_stashes))));
private _stashPos = getPos _stash;
private _box = createVehicle [GVAR(stashBoxClassName), _stashPos, [], 0, "NONE"];
private _box = createVehicle [GVAR(stashBoxClassName), _stashPos, [], 0, "CAN_COLLIDE"];
_box setDir getDir _stash;
clearItemCargoGlobal _box;
clearWeaponCargoGlobal _box;
clearMagazineCargoGlobal _box;
Expand Down

0 comments on commit 1326641

Please sign in to comment.