Game Development Community

Has anyone managed to make bots firing?

by Julien Carme · in Torque Game Engine · 11/23/2002 (3:06 am) · 2 replies

I can make bots walk to me, look at me, carry their
weapons, but I can't make them shoot at me.

Has anyone managed to do that? I know that I am supposed to use setImageTrigger, but it does not work.

Any help, or example code would be appreciated.

THank you

#1
11/24/2002 (10:05 am)
Juien, try if you find it here http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=2505 . Can you also post your code to get more information ?
Maybe you have an answer for my question : When I add a bot, always the bot is the same player model then me. I have more than one player model which I can choose from engine start. How can I add another player model to be different from me ??

Michael
#2
03/04/2003 (12:34 pm)
Lookie here:

function AIPlayer::spawnPlayer()
{
   // An example function which creates a new AIPlayer object
   // using the the example player datablock.
   %player = new AIPlayer() {
      dataBlock = LightMaleHumanArmor;
      aiPlayer = true;
   };
   MissionCleanup.add(%player);
.
.
.
.

Of course, this assumes that you have a "LightMaleHumanArmor"-Datablock defined - just look into player.cs and create an additional PlayerData-Datablock that uses your new shapefile.