Game Development Community

Great book THANKS! AI question included :)

by Denis Linardic · in Torque Game Engine · 10/04/2004 (9:57 pm) · 3 replies

First of all I want to thank you for writing that book. It really give me a kick in the a** when I need it. I was stuck and didn't know where to go next. Now I am sorry that i purchased almost a year after an engine :)

Anyway my question is:
Is there a simple way to ad some kind of OnShoot function in Emaga AI script?

What I would like to do is to force the bot's to react (notice me) when I shoot them, not only when I get close enough.
Any info would be very welcomed. Thanks.

P.S. Sorry for my english, is not my native language.
Hope to see another book from you Mr. finney - Maybe something more advance, I promise I wont do the same mistake again (wait almost a year to purchase it :)

#1
02/05/2005 (2:10 pm)
Well, you could put a function in the bot's control .cs file that finds out if it collided with a projectile. If it does, put a containerraysearchcast for the nearest target and have him aim at it.

Im not much of a coder
#2
02/06/2005 (6:01 am)
You could also add it in the weapon code, in the fire state, or in the projectile code, when it explodes, you could set a bigger contatiner that will anounce the explosion to all bots inside it and set them to target you.
#3
02/08/2005 (3:51 pm)
Good idea bruno...even though i find it fun to snipe them from a ledge without them noticing.

"Hey, i hear boom and i see smoke and flame but i do not care. I mind as well get back to looking side, to side, to side and not pay ay attention to that little dude in a leather jacket firing explosive bolts at me. "

What im wondering is, why is the standard male even wearing a leather jacket on a hot day in the game in the first place?!? Doesn't he get hot?