Originally Posted by Abraxas*
Quote
And also, when is OnInit() thrown, only once when the object is created for the first time or on every savegame load as well ?


The script is initiated after game start, save load and level load when the players gets in range.
If you want to have an action performed only once on init you have to use an iteger to set it off for the next inits.

PS: Thank you for the informative answer, Tinkerer. I didn't know that either.

MUCH thanks for your answer.

So that makes it an ideal place to clear a globally stored loop effect handle. (As done in BurningItem.itemScript)
... means I can remove some event catchers in my character script like OnLoaded I guess ;-)

Do you also happen to know if the game turns off loop effects on zoning ?
Could I restart a loop effect in an OnInit event after loading or would I additionally have to to wait until GameIsLoading() returned false ?

And finally, do you know if a timer is attached to the object that started it so that the finish event is only sent to that object or is that a global event ?