AI distance from player.
by Denis Linardic · in Technical Issues · 10/08/2004 (11:14 pm) · 23 replies
Hi!
I have a little problem, still learn scripting so this AI stuff is pretty much new to me.
I would like to stop the bot before it reaches me.
Example:
I have some trrigers setup which spawns three bots on the nearby hill and the bot automaticly start running toward me with desire to kill me (they are doing good job, well too good).
Now I would like to stop them before they reach me and make them strafe left or right.
Strafing is not that important at the moment, but stoping them it is, so if you have any idea please help. I am not asking for full solution (altough would be nice) but only some pointers :)
Thanks.
I have a little problem, still learn scripting so this AI stuff is pretty much new to me.
I would like to stop the bot before it reaches me.
Example:
I have some trrigers setup which spawns three bots on the nearby hill and the bot automaticly start running toward me with desire to kill me (they are doing good job, well too good).
Now I would like to stop them before they reach me and make them strafe left or right.
Strafing is not that important at the moment, but stoping them it is, so if you have any idea please help. I am not asking for full solution (altough would be nice) but only some pointers :)
Thanks.
About the author
#22
11/04/2004 (2:46 pm)
3d Game Prgramming All in One doesn't tell you how to program AI.
#23
3DGPAI1 gives you the basic foundation about scripting and later is easier to build on that.
My learning curve has become much smoother since I get my copy of 3DGPA1.
One more thing, AI is very game specific and that's probably why there is no how to create AI walktrough in this book.
11/04/2004 (9:59 pm)
No it doesent, but it explain how to get bot location, how to interact with world through script and a lot of other usefull stuff. I had to read some chapters few times before understanding completly and then with some imagination and a lot of help from the community you can very easy create some basic AI.3DGPAI1 gives you the basic foundation about scripting and later is easier to build on that.
My learning curve has become much smoother since I get my copy of 3DGPA1.
One more thing, AI is very game specific and that's probably why there is no how to create AI walktrough in this book.
Torque Owner Denis Linardic