Game Development Community

aiAddPlayer

by Colin Doncaster · in Torque Game Engine · 10/08/2002 (7:10 pm) · 5 replies

Is there anything special I have to do to get aiAddPlayer to work? I'm posting this in the mac group because it might be different from the windows version. I've included aiAddPlayer.cc in the project and rebuilt as per the many other threads about it not working.

Thanks - Colin.

#1
10/08/2002 (7:36 pm)
its $aBot = aiAddPlayer("Hitme");

mmm make sure your game.cs is calling up the aiplayer.cs file (exec ("./aiplayer.cs"); )

it should be the same on mac.
#2
10/08/2002 (8:09 pm)
The scripting should be machine-independant; only the engine code would differ between platforms.
#3
10/08/2002 (9:16 pm)
Weird, the game.cs in example/fps/server/scripts/game.cs does have an exec("./aiPlayer.cs"); is it supposed to be in one of the other ones?

Thanks, Colin.
#4
10/08/2002 (10:13 pm)
Yeah, the code is the same on all platforms, but the AIPlayer class has recently changed...
now it should be:
$myBot = AIPlayer::spawnPlayer();
#5
10/08/2002 (10:58 pm)
Excellent, thanks.