likeablePanda 48 Share 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. Link to comment Share on other sites More sharing options...
Pandemic 2712 Share 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 Link to comment Share on other sites More sharing options...
likeablePanda 48 Author Share 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? Link to comment Share on other sites More sharing options...
Pandemic 2712 Share Posted May 7, 2021 I think 12 or 13 is a pretty safe bet usually. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.