A question about examplescript.pys

Posted by Hairui on Mon 28 Jun 2004 01:41 PM — 2 posts, 15,627 views.

China #0
I looked into the examplescript.pys and i found some functions were defined in it,such as :

# ---------------------------------------------------------
# Example showing running a script on world open
# ---------------------------------------------------------
def OnWorldOpen ():
  world.Note ("---------- World Open ------------")
...

My question is :
Will this function be performed automatically while the world be open?
or how can i make it be performed automatically when the world be open?
Amended on Thu 14 Apr 2005 02:21 PM by Hairui
Greece #1
You should go to the world's scripting section and write OnWorldOpen in the "On world open" box.