Game Development Community

Errr can't insert namespace in simset call seq.

by Dumbledore · in Torque Game Engine · 08/16/2008 (8:12 am) · 1 replies

For some reason I cannot get my simset object to insert a namespace in its call sequence. Here's what I've tried:

%set = new SimSet(name)
{ 
     className = name; 
     superClass = name;
};

name::method(%this)
{
     echo("found method");
}


%set.method(); 

Console Says: 

unable to find 'method'
SimSet -> SimObject

Naturally I didn't try all three methods simultaneously. I first tried setting only the name, then I tried only setting className, then superClass. None of the methods worked. Why?

#1
08/16/2008 (1:08 pm)
Using name should work. SimSet does not support class/superclass without a minor C++ change, however (look at the constructor for ScriptObject for reference).