Game Development Community

AI controling bot movements

by Student-GameDevelopment · in Torque Game Engine · 08/12/2009 (1:16 pm) · 0 replies

Hello, i have the dungeon pack, and i got the AI mostly working but here is my issue. When the bot decides to give up on chasing the player, it is supposed to go back to its spawn point and wait for the player to be in range for an attack. When the bot runs back to its spawn location, it goes crazy trying to stop on its origin, as though something is in its way. Only thing i can think of is i spawned the bots in using markers of them placed into the game world. I then call LoadEntities which searches for all bot markers and brings them to life, then hides the markers. Could it be the bot is colliding with its marker when trying to return to its spawn location?

I am using setmovedestination in the AI, and it gets the location from a spawn position variable i created in the new AIPLayer object. What can i do to make my bots go back to their post?


Thanks anyone who knows how to fix this.