Game Development Community

AIConnect?

by CodingChris · in Torque Game Engine · 12/29/2006 (5:24 am) · 41 replies

Hi,
I'm making a bot which is handled as player. I create the bot in the function startGame() with:
%botConnection = aiConnect("MasterBlaster" @ %i, -1, 0.5, false, "SDF", 1.0);
then in onClientEnterGame:
if (%this.isAIControlled()) {
    %this.player = CreateAIWheeledVehicle2("Herbie","CarPath",pickSpawnPoint()); 
	  
  }
Now everything works fine but then I need something in startRace:
$Bot.followPath("CarPath", -1);
$Bot.lap = -1;
$Bot.nextCheck = 1;
I replaced $Bot with all I know something with serverconnection, aiconnection... and nothing does work. How to say something to this bot?
Page«First 1 2 3 Next»
#41
01/04/2007 (12:51 pm)
Yes I have, I try again now it is compile for some reason. I was compare it to someone else so may have merge something. But I cant get the car to spawn with the new code.
Page«First 1 2 3 Next»