Game Development Community

ToqueScript Command Reference?

by Jake Callery · in Torque Game Engine · 01/04/2007 (6:06 pm) · 4 replies

Hi, sorry if this has been answered, but its a tough one to search for.

1) recently I was made aware of this change in TGE 1.4+, when wanting to switch views:
ServerConnection.setFirstPerson($firstPerson);

If someone in the forums would not have answered my question of why setting $firstPerson no longer worked on its own where would I have looked?

In other words, if I want to find out all that the "ServerConnection" can do, where
could I reference that?

Is there a place that I can search for things of this nature?

2) Is there a way to search only certain "Sections" of the forums here?


Sorry for the basic questions, but I would like to not bother you guys as much as possible
and be able to find these basic answers on my own.

Thanks ever so much for the help!

-Jake

#1
01/04/2007 (6:52 pm)
Hey Jake: The 'dump' command is your friend.

In the console:
ServerConnection.dump

This will tell you all the functions that ServerConnection can call...And by opening up the source code, you can see that functionality in play.

I also use TDN and this link (TGE Docs for help.
#2
01/04/2007 (7:03 pm)
Thanks for the link and the reply.

However I don't seem to be able to get that command to work with TGE1.5:
I get this error:
Unable to find object: 'ServerConnection' attempting to call function 'dump'

It does seem to work in the 1.3 version that came with the book I'm working from.

Thanks again for your time!
#3
01/04/2007 (7:36 pm)
It works, but you have to be in a mission.

*edit - It works in TGE 1.5, but you have to be in a mission, not sure about earlier versions.
#4
01/04/2007 (7:44 pm)
Ahh.. indeed that did it..
thanks!