Game Development Community

Hide/Show Objects from mission

by Leon · in Torque Game Engine · 04/01/2004 (12:01 am) · 1 replies

Hi:

I want setup triggers that, when i enter on it, a list of dts objects hide, or show.

I was searching at doc/forums, but i didnt find anything about this.

Someone knows?

thanks.

#1
04/01/2004 (8:26 am)
Here is a little snipit of code that will either hide/unhide objects contained within 'MyGroup'.

// Hide or unhide objects within MyGroup
for (%i = 0; %i < MyGroup.getCount(); %i++)
{
   %obj = MyGroup.getObject(%i);

   if (%wantToShow)
      %obj.hide(false);
   else
      %obj.hide(true);
}