Triggering custom script events

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Triggering custom script events

Re: Triggering custom script events

by trixmoto » Thu Sep 17, 2009 3:13 am

No I don't think this is possible, but it is a good idea! :)

Triggering custom script events

by flashk » Wed Sep 16, 2009 4:36 pm

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.

Top