Game Development Community

AIPlayer / AIClient

by Badguy · in Torque Game Engine · 10/09/2002 (10:56 am) · 2 replies

Ok who is working on this?
I cant make sense of the AIPlayer::spawnPlayer(..)

shouldn't it be respawnPlayer?

as it seems to already be an object but in the function it creates a new one ..

so to get a new AIPlayer .. first I make one..
%bleah = new AIPlayer(grr)
{
   bleah...
};
then call the function spawnPlayer.. and it makes another?

#1
10/16/2002 (1:47 pm)
Call the function in the console like this: AIPlayer::spawnPlayer();

This is like a static class method in C++, you don't actually need an AIPlayer object to make a call to it.
#2
10/16/2002 (2:31 pm)
Ok, thanks
but I didnt like that so I moved it around :)