Game Development Community

reordering simset objects

by Isaac Barbosa · in Torque Game Builder · 06/02/2011 (4:07 pm) · 1 replies

hi, I need help with something relative to simset objects. Let´s say you have 5 objects, 1, 2, 3, 4 and 5 and then you delete 4, and you want 4 to become 3 and 5 become 4. How do you achieve this? I see there is a reorderchild command, but how should i use it? Thanks in advance

#1
06/03/2011 (8:53 am)
solved. thanks

objeto = $Linea14.getObject(%i);
%nino1 = $posicionador14;
%nino2 = %this;
$Linea14.reorderChild(%nino2, %nino1);