Quote:
Originally Posted by moneypulation
How do you avoid islands? For example, when the bot is searching for shipwrecks and at the point where your ship is going at there is no island but on the way it will have to go through one. How does the bot react to that?
|
Quote:
Originally Posted by justicek
I test it and when island shoot my ship bot goes in the corner .
|
when the bot comes near an island it instantly goes to a corner and stays inactive for 7 seconds in order to get way from it and not get stuck in shipwrecks withing the range of island(hope you understand)
I tried to use xriddi's way but it was pretty difficult, i couldnt understand it.
So i invented mine. I created 4 boxes, one from each side of the island. When player is in one of this boxes, it goes to the corner that is assigned to this box(this was from xriddi). The corner selection is in such way that bot will not pass through island, but get back.
If shipwreck is found in island's range, your ship while going there it will activate IslandHit. Then it will go to the best corner, so to not get hit again and will be travelling for 7 seconds doing nothing.
If any other bug happens, post it in order to fix it as soon as possible