Game Development Community

TS/C++ Class Hierarchy

by Telmo Menezes · in Torque Game Engine · 03/16/2005 (11:35 am) · 1 replies

Hi all,

Some questions I hope somebody can help me with...

I'm trying to figure out how some stuff in TS relates to the C++ class hierarchy. Couldn't find any help in the documentation and navigating the code didn't help either so here goes. I'm using starter.fps-like scripts.

1. There is a variable in TorqueScript called $Server. What object in C++ does this variable link to, if it does?

2. I'd like to create a C++ global instance of an object when a new mission is started. I don't want to use TS for this. Where in the C++ hierarchy do things happen when a mission starts? I need a hook in C++ code...

3. How does MissionCleanup.add(%stuff) in TS relates to C++? How can I do the equivalent in C++?

Regards,
Telmo Menezes.