So I am trying to put together a loot vacuum script for EDF, but I have gotten a bit stuck. I know there is a thread (viewtopic.php?t=8058) which gives a script that sort of does what I need, but I would like to put something together myself so that I can understand how things actually work.

So I have found the values/addresses that keeps the count of how many loot pick-ups I have made, but what I am stuck on is how I would I would find the address that references when the player interacts with the loot box, which would then allow me to force the game to think the player is always in proximity to the loot boxes.

I did try getting a count of loot drops in the world but that didnt seem to yield any useful results. So I am wondering if someone could point me in the direction of how I would go about things.