Game Development Community

What is the difference between SimObject::clearNotify() and SimObject::deleteNotify()?

by Ji Xinyu · in Torque Game Engine Advanced · 09/20/2011 (5:44 pm) · 2 replies

Hi,anybody can help me?What is the difference between SimObject::clearNotify() and SimObject::deleteNotify()?

#1
09/25/2011 (9:07 am)
deleteNotify asks for a notification to be sent when a specific object is deleted.

So an AI might set a target object, then set a deleteNotify so that the AI is notified if the target object gets deleted at some point.

clearNotify clears the request for a deleteNotify.
Note that the comment for clearNotify in the source code "Notify an object when we are cleared." is utter nonsense.
#2
09/25/2011 (9:35 pm)
Hi,Guy Allard, thanks very much