SabreCodes
Dec 10th, 2025 (edited)
54
0
Never
This is comment for paste lootHoover.sqf
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Hey,
  2.  
  3. So I have been playing around with this script and have noticed that if you run the hoover, then run it again, it just deletes everything from the first collection? I am certain that the last time I used it, it grabbed everything from the first box and didn't just delete it?
  4.  
  5. It seems to be grabbing the same box (if it can find it near the player?) so I am guessing it is clearing that box of its contents before the find loot part actually runs? Is there anyway to make it spawn and fill a new one each time? That way it would grab out of the first loot hoover box and put it in the second.
  6.  
  7. Also if you're interested:
  8.  
  9. // WORLD WIDE LOOT HOOVER:
  10. // Tweaked by: SabreCodes
  11. // Twitter: @Kerbo_
  12.  
  13. private _maxDistance = 20000;
  14. private _flagClass = "FlagMarker_01_F";
  15. private _placeFlag = false;
  16. private _lootCrateClass = "Box_IND_Wps_F";
  17. // private _magicBoxClass = "Box_IND_Support_F";
  18. private _magicBoxClass = "Box_IND_Wps_F";
  19. private _magicBox = nearestObject [player, _magicBoxClass];
  20.  
  21. if (_magicBox == objNull or typeOf _magicBox == "") then {
  22.  
  23. // create empty crate
  24. _magicBox call A3A_fnc_initObject;
  25. _magicBox call A3a_fnc_;
  26. _magicBox = createVehicle[_magicBoxClass, position player, [], 0, "NONE"];
  27. _magicBox allowDamage false;
  28. clearWeaponCargoGlobal _magicBox;
  29. clearMagazineCargoGlobal _magicBox;
  30. clearItemCargoGlobal _magicBox;
  31. clearBackpackCargoGlobal _magicBox;
  32. };
  33.  
  34. Small change I made that makes it the normal Antistasi Loot Crate (Weapons box) with the same, carry, load loot to crate, load loot to vehicle, and load into vehicle. So you can use it to quickly gather all of the loot (I play solo so major time-saver!) but still have a box to potentially loose transporting it home!
Advertisement
Add Comment
Please, Sign In to add comment