I am not sure what to call it... An array perhaps? Basically, I want to be able to set up a structure that will look at my current location, do a check to see if there are any NPCs within a certain range, and if not, move to the next set of locs and check again. If nothing there, it will move to the next one, and so on...
I just want to be able to cycle through coordinates until I get to a point that has mobs in range. Can anyone give me an example of a set of if statements that will cycle through results in a specific order?
I think I can fill in the blanks if I have a good example to base my work off of.
Thanks in advance.
I just want to be able to cycle through coordinates until I get to a point that has mobs in range. Can anyone give me an example of a set of if statements that will cycle through results in a specific order?
I think I can fill in the blanks if I have a good example to base my work off of.
Thanks in advance.