Game Development Community

Problem with the spawnAIPlayer patch.

by Kimberly Unger · in Torque Game Engine · 10/01/2003 (7:04 am) · 7 replies

Note: This is a moved posting from the "Programming thread of 'General Technical Issues for Game Developers'".


I'm getting a error message now in the Console Log.

"Unable to find function spawnAIPlayer"

What have I left out now?

#1
10/01/2003 (9:00 am)
With the Head version I use:

$bot = AIPlayer::spawnPlayer('Bot1');

HTH
CG
#2
10/01/2003 (11:35 am)
OK, still now joy. I tried $Cow=AIPlayer::spawnPlayer('Bot') and AIPlayer::spawnAIPlayer((HCowData, %pos);

Do you have the function spawnPlayer or spawnAIPlayer in AIPlayer.cc?
#3
10/01/2003 (1:54 pm)
Kimberly the function you're looking for from the patch is "aiSpawnPlayer" you're trying to call the C++ version ("AIPlayer::spawnAIPlayer").

Edit: Sheesh I can't even get my own function names right when I'm looking at the code.
#4
10/01/2003 (3:31 pm)
Thanks for the help. I'm now not getting any error messages when the aiSpawnPlayer is called. Cann't see my Bot in the game yet. Is there any short cut to make sure the Bot is created above ground and in the play area?
#5
10/02/2003 (6:58 am)
Kim: I found the AI tutorials on this site to be excellent:
tork.zenkel.com/modules.php?op=modload&name=ToRKTutorials&file=index&POSTNUKESID...

CG
#6
10/02/2003 (8:13 am)
I've read these through but they are new dated and also don't answer my question about an easy way to insure the bot is spawned at ground level.
#7
10/02/2003 (1:40 pm)
Found out why the Bot was not showing up. Thier is a flag called 'hide' that has a default seting of true. This needs to be set to false in the PlayerData block.