
05-01-2009, 06:31 PM
|
the Professional.
|
 |
Join Date: Sep 2003
Location: Zormite
Posts: 964
|
|
Quote:
Originally Posted by Stefan
The function onCreated() will automatically be called when the "created" event is triggered by the engine.
Object1 triggers an event on Object2 -> onEvent() in the script of Object2 is called
Object1 can be the engine.
This is working exactly the same in GS1 as in GS2, just looking different:
instead of if (trigger) you write onTrigger(). In GS1 it was actually scanning for "if (trigger)" and was trying to only call that part of the script when the event was triggered.
|
I see.  |
__________________
*Don't let the door hit you on the way out.*
|
|
|