As displayed here - would be a great addition to stock torque
This can be done only with TorqueScripts. No need to change engine source for this.
As Vincent says, this can be done in TS, though the method is slightly obtuse. We'd welcome source code changes that make Vincent's TheSimGroup visible from scripts without having to include his onLoad function, or failing that we'll revisit this when we overhaul the stock scripts.