likeablePanda 48 Posted May 7, 2021 So, let's say i'm mining copper core and standing some distance from it. If I zoom all the way out, such that the copper tile *would* be on the screen, but the game hasn't loaded that area, isOnScreen returns true. I was using the isOnScreen condition to determine if i should to move my cursor to that rock and left click, but if you do that when it's not loaded in, nothing happens. So my bot ends up sitting there hoving over something. Naturally I can work around it by keeping the zoom in or making sure i'm within a certain distance. But I was wondering if there's a more robust way to know if the rock is both on screen and loaded in and can be interacted with.
Pandemic 2853 Posted May 7, 2021 By not loaded in, do you mean some rocks outside of your current region are being picked up? You might want to filter your potential rocks with a distance() check
likeablePanda 48 Author Posted May 7, 2021 Yeah-- is it known what is the minimum distance i'd have to be to guarantee it's in my loaded region?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.