SafeDelete crash TGB?
by Firas · in Torque Game Builder · 09/20/2006 (5:03 am) · 1 replies
When I call safeDelete in my oncollision function the TGB will crash, why this happen?
here is the code:
thanks in advance
here is the code:
function playerClass::onCollision(%srcObject, %dstObject, %srcRef, %dstRef, %time, %normal,%contacts, %points)
{
if(%dstObject.getName() $= "bump")
{
%dstObject.safeDelete();
}
}thanks in advance
About the author
Torque Owner Thomas Buscaglia