A downloadable project

How miners deposit resources without getting stuck

The big problem was that once the miners collected a certain amount of resources from the mine, they all headed to the same exact spot on the warehouse to drop them off. Using a plain MoveTo:Warehouse meant they would all pile up on top of each other or get physically stuck.

To fix this, I created a very simple position generator that comes in 4 variants (one for each side/corner of the building). It evenly spreads drop-off points along the entire side of the warehouse. These points are then exposed through a clean interface via the GetLocation function, so each miner knows exactly where to go without overlapping.

Important!!! I implemented everything directly in the Blueprint solely because I’m the only developer on this project – it’s a solo passion project and I genuinely thought nobody would ever see this code XD (So yes, it’s a bit “creative” in places, but it works perfectly!)



Here a Snippet of the code click play and set fullscreen:


Here is the GetLocation (interface): called in the Behavior Tree  to replace the target of the MoveTo 


Leave a comment

Log in with itch.io to leave a comment.