Server side objects
by Neil Marshall · in Torque Game Engine · 08/27/2002 (8:05 pm) · 4 replies
I'm trying to create an object server side, which tracks all of the clients in a race. I want to have a $Race object with methods which I can call to add people/remove people from the list.
Right now I'm getting "Unable to instantiate non-conobject class race." in the console, so I'm definatly going about this the wrong way. Can someone help? Or maybe show me to some docs/suggest some code to look at in the game itself?
My best attempt at it is this
Right now I'm getting "Unable to instantiate non-conobject class race." in the console, so I'm definatly going about this the wrong way. Can someone help? Or maybe show me to some docs/suggest some code to look at in the game itself?
My best attempt at it is this
$Race = new RaceManager() {};
function RaceManager::newRace(%this, %blah)
{
}
#3
08/27/2002 (8:44 pm)
Is this done in C++ Or CScript?
#4
This document really helped:
www.garagegames.com/docs/torque.sdk/coding/console.html#namespace
It doesn't require a $ though, which I'm finding odd.
08/27/2002 (9:24 pm)
I think I got it. Thanks.This document really helped:
www.garagegames.com/docs/torque.sdk/coding/console.html#namespace
It doesn't require a $ though, which I'm finding odd.
Torque 3D Owner Robert Blanchet Jr.
If not, you can't call new RaceManager like that.
Reply with further details and I can help you further.