Random Spawning Bots using AiGuard
by Randy Hearn - Magnum · in Torque Game Engine · 09/21/2006 (8:06 pm) · 0 replies
OK,
Back playing around with Torque some now, been out with surgery and trying to get back into learning this more.
I have added the AiGuard and setup from some resources I found so that the bots spawn randomly and are assigned random names, etc...etc... I have a variable set called $TOTAL_BOTS which is the total number of bots in the game and setup on server start.
What I am planning is to have Bots spawn on each team at the AIGuard Marker, or any marker or object I define as a Spawn Marker. At game start up a random number will spawn at each location, making the game different each time.
My problem comes in, is I may be thinking this trough incorrectly, as when a bot dies, I want to spawn a new one, but the location may not be it's original Marker, do to game play (captures, destroys ect..).
So what would be the best approach in maintaing my bot level, as well as controlling the spawn?
As I have said, I have not seen any resources on this specific issue, although I have found some on random spawning and they have been a big help.
Now, after reading this, would the answer be as simple as on the AiGuard OnDeath, do another marker check and find one open and assign to the bot?
Back playing around with Torque some now, been out with surgery and trying to get back into learning this more.
I have added the AiGuard and setup from some resources I found so that the bots spawn randomly and are assigned random names, etc...etc... I have a variable set called $TOTAL_BOTS which is the total number of bots in the game and setup on server start.
What I am planning is to have Bots spawn on each team at the AIGuard Marker, or any marker or object I define as a Spawn Marker. At game start up a random number will spawn at each location, making the game different each time.
My problem comes in, is I may be thinking this trough incorrectly, as when a bot dies, I want to spawn a new one, but the location may not be it's original Marker, do to game play (captures, destroys ect..).
So what would be the best approach in maintaing my bot level, as well as controlling the spawn?
As I have said, I have not seen any resources on this specific issue, although I have found some on random spawning and they have been a big help.
Now, after reading this, would the answer be as simple as on the AiGuard OnDeath, do another marker check and find one open and assign to the bot?
About the author
Technical Product Designer (Mechanical Design) for Boeing for over 25 years working with CAD and PLM systems. I have a Associates Degree in Business and a partial B.S. in Game and Simulation, just couldn't see paying the costs for some of the classes.