Game Development Community

Where can I get Info on how to do simple things with AI?

by Chrisamethyst · in Technical Issues · 03/26/2007 (11:44 am) · 3 replies

Hello, I'm making a game with bots and I'd like them to do certain things, the problem is I'm not familiar with torque script. These are the things I'd like my bots to do:

--attack my player if he gets too close to them

-- follow other bots

-- walk slower

--die (and not come back)

Id be very grateful if anyone can help me find out how to do these things, I've taken the torque tutorial base and I know how to make my bots follow paths. Id like to do more with AI.

#1
03/26/2007 (12:06 pm)
Except for the second action (follow other bots), there is a resource called "AI guard" that do all this things (and much more like seek for ammo, seek for health pack etc.)

you can find it here:

http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=6773


I developed also a small free AI editor (only for windows) called aisce that let you tinker a bit this code without knowing torquescript, you can find it here:

http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=12171

Homever in order to use those resources you need to recompile the engine.
This is also a good start point to learn torquescript for AI.

Hope this help
#2
03/26/2007 (4:07 pm)
Thank you!
#3
03/26/2007 (4:27 pm)
Another thing, what if I want the bots to attack my player by hitting them... lets say I have an animation for an enemy hitting a player (like punching) how can I make that work as an attack instead of using a projectile like the crossbow in Torque?