Game Development Community

ObserveParameters

by Arcanor · in Torque Game Engine Advanced · 12/08/2007 (3:17 am) · 2 replies

In the TGEA 1.0.3 demo script code (example/demo/server/scripts/player.cs, line 661) inside the PlayerData datablock there is a variable, defined thusly:
observeParameters = "0.5 4.5 4.5";
I'm wondering why it's there and what it does. I've searched through the following places so far:
1. all the script code in TGEA 1.0.3's example folder
2. all the TGEA 1.0.3 source code
3. the garagegames.com online search function

I've found nothing which tells me what this variable is for or how to use it. Did I miss something somewhere? In the future, where else should I search to find the meaning of unknown code bits that I encounter?

My suspicion is that it's a vestige of legacy code which has no purpose any more, but has been propagated on and on for no good reason except that it was there. This doesn't sit right with me. I don't want my codebase bloated with stuff that I don't know how to use, or is useless.

#1
12/08/2007 (3:30 am)
The line you found is the only one I find aswell when I search for observeParameters in the VS project and script files. Conclusion: it's simply not used and I have no clue where it comes from :)
#2
12/08/2007 (5:36 pm)
What bothers me about this is that the variable has no associated function, and no documentation, not anywhere, and yet it persists in the distribution. Why wasn't this taken out by someone at GG whenever it was made useless?

And why wasn't its removal documented in some forum entry or resource somewhere?

And how many other vestiges of old code are there left to find?