Delete object
by Unnown · in Technical Issues · 10/31/2007 (12:16 pm) · 5 replies
Is there a way to delete a object (door) when somebody walks into a trigger?
#2
11/01/2007 (1:56 am)
Alright thanx i was looking for it but i wasn't sure that was it :)
#3
11/01/2007 (4:00 am)
If you intend to be able to reset the door later then I would suggest you simply hide it using the setHidden(true/false) method. This will only work with a StaticShape however as the functionality is provided by the ShapeBase class and is not present in the TSStatic class.
#4
02/09/2010 (12:12 am)
I couldn't figure out where to put sethidden but i did figure out how to get it to delete and that's good enough for me.
#5
02/09/2010 (12:15 am)
Thanks
Torque Owner Michael Bacon
Default Studio Name
%myDoor.delete();
or
%myDoor.schedule(0,delete);
Just replace %myDoor with whatever object you are using.