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
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
#2
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.
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.
Torque Owner Michael Schaumburg
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