Juggles Posted May 26, 2016 Share Posted May 26, 2016 Trying to find an object not on map.I am trying to make a script that searches for a Game Object but it has 4 random spawns. How would I make the bot walk a certain area searching for it and then it needs to realize that the object exists and clicks on it. I can't use getObject.closest because its not within the proximity of the screen. Quote Link to comment Share on other sites More sharing options...
Woody Posted May 26, 2016 Share Posted May 26, 2016 (edited) How would I make the bot walk a certain area searching for it and then it needs to realize that the object exists and clicks on it. Just as you wrote; walk to area --> search for object using filter (area.contains(entity)) --> if it exist, interact with it Edited May 26, 2016 by Woody 1 Quote Link to comment Share on other sites More sharing options...
Khaleesi Posted May 26, 2016 Share Posted May 26, 2016 You can only search for Objects if they are in the curernt loaded game area. Which is something like 104x104 tiles. (not sure about this) Every object outside this area will nto be loaded so it can't be found. So if the 4 spawns are located in the loaded area it won't be a problem ^^ NPC's have a similar thing going on but they need to be visible on the minimap in order to be loaded. Every other NPC will not be loaded. Quote Link to comment Share on other sites More sharing options...