A.I. Walkthrough?
by John Doe · in Torque Game Engine · 07/07/2003 (3:34 pm) · 3 replies
Could someone please walk me through the basics of setting up bots in Torque. I have tried a tutorial and the IRC but neither has worked(mostly my fault Im sure), so a real basic explanation would be helpfull. Thanks!
About the author
#2
07/07/2003 (7:01 pm)
If you're using the latest HEAD aiClient is not used and the aiaddplayer function will crash you. Though I posted a resource that adds an easy spawn ai player function.
#3
$bot=AIPlayer::spawnplayer("AI Guy");
From an unmodifed HEAD, this will spawn an AI player from a Player Spawn Sphere. (Look around to find him)
'$bot' is your 'handle' to reference your AI guy.
After that, from the console,
$bot.dump();
Will list the methods/functions you can use directly on $bot.
07/08/2003 (4:08 pm)
From the console,$bot=AIPlayer::spawnplayer("AI Guy");
From an unmodifed HEAD, this will spawn an AI player from a Player Spawn Sphere. (Look around to find him)
'$bot' is your 'handle' to reference your AI guy.
After that, from the console,
$bot.dump();
Will list the methods/functions you can use directly on $bot.
Torque 3D Owner Billy L
Have you compiled with the aiplayer.cc ,aiplayer.h ,aiclient.h
and aiclient.cc ?
If you have then in console only type
$bot=aiaddplayer("mybot");
if you want a bot shooting at you then try out
Stefan beffy Moises advanced bot scripting in
the example code section !
hope this help !!
-Billy