TSStatic::create
by Caylo Gypsyblood · in Torque Game Engine · 09/22/2006 (8:06 am) · 0 replies
From EditorGui.cs I wish to make function TSStatic::create(%shapeName) auto name each new shape as %shapeName.
I use this:
%obj = new TSStatic(%shapeName)
{
shapeName = %shapeName;
};
And it seems to name all TSstatic just fine, until next reload of mission, at what time the name reload scrambled. The TSStatic have the right names when I reading from the .mis mission file- so i know they are saved the way i wish. Is there some part i am missing?
I use this:
%obj = new TSStatic(%shapeName)
{
shapeName = %shapeName;
};
And it seems to name all TSstatic just fine, until next reload of mission, at what time the name reload scrambled. The TSStatic have the right names when I reading from the .mis mission file- so i know they are saved the way i wish. Is there some part i am missing?