Jump to content

Find an object not on the map.


Recommended Posts

Posted

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.

Posted (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 by Woody
  • Like 1
Posted

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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...