Game Development Community

When is the engine ready ??

by Michael Schaumburg · in Torque Game Engine · 12/06/2002 (9:00 am) · 1 replies

I need to know, when all the engine initialisation is ready. I want to acces directly after the engine is ready my player and my bots. Is there a function or where do I have to put my initialisation in ?
Now I have it in game.cs in the function startGame, but there I get errors until the player and the bots are created.

#1
12/06/2002 (9:49 pm)
I think what you're looking for is in game.cs

function GameConnection::createPlayer(%this, %spawnPoint)

This does all the setup of the actual player entering the game. For example I added:

commandToClient(%this, 'InitStartupSettings');

To tell the client to get ready for all his initial settings that are not defined in the createPlayer function.