How to delete a script object???
by Tim Kin Chu · in Torque Game Builder · 04/24/2006 (4:04 am) · 3 replies
How to delete a script object???
#2
04/24/2006 (5:03 am)
Always thought we were meant to use .SafeDelete(), at least if we wanted the app not to crash for some reason.
#3
04/24/2006 (8:00 am)
SafeDelete() only works for t2dSceneObjects and derivates. With ScriptObjects you have to use delete(). But you are right, when you are dealing with a scene object, animated sprite, particle effect or the like, better always use safeDelete().
Torque Owner Michael Woerister