Clone SimSet?
by Gellyware · in Torque Game Builder · 12/31/2008 (8:09 am) · 1 replies
Is it possible to clone a simSet?
(without editing source)
i.e.
$simSet1 = new SimSet();
%o = new SimObject();
%o.val = 1;
$simSet1.add( %o );
$simSet2 = new SimSet();
$simSet2 = $simSet1;
(without editing source)
i.e.
$simSet1 = new SimSet();
%o = new SimObject();
%o.val = 1;
$simSet1.add( %o );
$simSet2 = new SimSet();
$simSet2 = $simSet1;
About the author
Torque 3D Owner Eric Armstrong
Bloody Tongue Games
That is my understanding anyway. If any of the above is wrong, I'm sure someone will let us know...
I don't believe there is a default copy or clone method of SimSets, so you would have to do the moving yourself in script or create a method in code.