Page 1 of 1

Triggering custom script events

Posted: Wed Sep 16, 2009 4:36 pm
by flashk
Is it possible to create custom script events and trigger them manually from different scripts?

For example, I would like one script to register for the custom event like this:

Code: Select all

' Register for custom event
Script.RegisterEvent SDB, "OnMyCustomEvent", "MyCustomEventHandler"
Then have a different script trigger the event:

Code: Select all

' Trigger custom event
Script.TriggerEvent SDB, "OnMyCustomEvent", args
This would make it really easy for different scripts to communicate with each other.

Re: Triggering custom script events

Posted: Thu Sep 17, 2009 3:13 am
by trixmoto
No I don't think this is possible, but it is a good idea! :)