Scriptname TeleportNodeListener extends ObjectReference {Thread that runs on the teleport node to kill old nodes and pass reference to self}import gameimport utilitybool KillMyself = falsebool Property KillOrderSent = false auto ;Cicero asks: Can all running TeleportNodeListeners see this? I hope so!PlayerTeleportScript property WhoIsIt = None autoObjectReference Function Get() return (self as objectreference)endfunctionFunction Listen() ; Cicero is listening! while !KillMyself if KillOrderSent KillMyself = true ; Cicero says poor Cicero must die! endif if WhoIsIt ; Someone asks where Cicero is? WhoIsIt.GetTeleportNode(self as ObjectReference) ; Tell them once WhoIsIt = None endif Wait(2.0) ; Cicero says, Let's not use up ALL the processor cycles just keeping our variables alive! endwhile self.delete() ; Urk! (Thud!)endfunctionFunction SendKillOrder() ; Cicero says, everybody die...except me! KillOrderSent = true Wait(4.0) ; Wait til the others get the message. KillOrderSent = falseendfunctionEvent OnLoad() SendKillOrder() ; Cicero says to kill any other Listeners out there! Listen() ; Cicero says to listen!EndEvent(Yes, this problem is driving me to channel poor poor Cicero!)


