View Single Post
  #2  
Old 10-30-2007, 10:36 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
We must be long lost brothers, I believe we think similarly about scripting
Quote:
Originally Posted by Novo View Post
Please note that the onCreated trigger is executed in the NEXT tick. That is, the object will still be in the class until 0.05 seconds later. If you require an immediate answer, either sleep(0.05) before testing,
That caused me some irritation a few months ago, my suggestion for fixing that is an onJoin() function event specifically for classes that would be executed at the end of the joining process and before you can join another class or continue the function that called the join. The event would have to complete before the script could continue. The event would also not be added to the object the class is being joined to. There would also be the onLeave() counterpart.
__________________
Reply With Quote