Need Function Help Chest Open - Paying arms if u can help

03/05/2023 17:31 idkanamegw#1
Hey guys, I'm needing some help with a function, and I don't understand why it's making the error it is.

High Level, I'm trying to have the function do this....
________________________________________

Search for chest within a specific range: I think what I have has it keep searching, but it searches too far and it shouldn't? This means it never resigns and returns if there isn't a chest. I've tried longbow range and Spawn. Both don't seem to work

If "NO" chest in that range: resign and return to outpost

If "YES" chest is found in that range, then [kill all enemies until it's =1 within my aggro range]. *If 1 enemy in aggro range is true, and found chest is true, then I want it to continue to grab chest and resignreturn.

*The 1 enemy is important, and I want it to continue chestrun and not keep trying to kill that enemy, because it will take too long.
_____________________________________________

It should be fairly simple, but it's very irritating how I can't get this piece right.

FYI I'm using Vaettir files for call types
03/09/2023 16:58 timtimcharoo#2
you should check out the boreal chest bot that has been shared in the working bots thread in the other forum. I think the logic you need would be in there. it finds chests, pops them, and collects all will ignoring enemies nearby