Game Development Community

Change parent simgroup in console/script

by Greg G · in Torque 3D Professional · 02/11/2012 (9:40 pm) · 3 replies

We have some systems that rely on particular objects being in particular simgroups. I need to be able to swap objects in and out of simgroups in real time without using the mission editor. Does anyone know how I might go about doing this?

#1
02/12/2012 (7:49 am)
yourSimGroup.add(%object);
#2
02/12/2012 (1:32 pm)
Keep in mind, an object can only be part of one SimGroup at a time. If you want it to be part of multiple groupings then you need to use SimSets.
#3
02/14/2012 (7:49 am)
Thanks guys