Game Development Community

Adding bots / enemies

by . · in Torque Game Engine · 08/10/2006 (4:57 am) · 4 replies

Hello all,

I've been going through some tutorials about Torque and the demo, and managed to create a bot following a path (didn't script it myself though). I do however have a question:

In the tutorial the bot is created through script and assigned to the path I layed out in the editor. How do you set up different bots per level/mission? Right now the bot-code is executed when the game loads, this means that the bot is the same for all levels?

I hope you can clarify this for me.

Thanks in advance.

#1
08/10/2006 (5:23 am)
Take look at this. It is the AiGuard, it will get you off to good start.
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=6773
#2
08/10/2006 (9:18 am)
Took a look at it and didn't understand too much ;) I understand how to add scripts with the exec(...) but how does this extend Torque's ability to have bots/enemies in a level/mission? I assume the engine has the ability for enemies by default - I just don't know how to store enemies for a certain mission, not for the global program. Should I load this from an external file?

At this point I don't even know how to load a mission myself, the tutorial template had this premade with 1 mission.
#3
08/10/2006 (9:38 am)
The resource linked above allows you to save entity markers for your AI. Thus enabling you to drop in markers where you'd like your AI to appear within your mission on a per mission basis.
#4
08/10/2006 (11:31 am)
To add on, the AiGuard is very expandable. I have change it to an attack horse and rats. You can use the Aipatrol to have guard dogs, there alot you can do with it. Drop the files in the engine recompile. It not hard, if you need help doing drop me email.