
05-01-2009, 06:07 PM
|
Graal Administration
|
Join Date: Jan 2000
Location: Admins
Posts: 11,693
|
|
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. |
|
|