Don't click here unless you want to be banned.

LSL Wiki : EventHandler

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are ia360925.us.archive.org

Event Handler

In LSL scripts, an event handler is possibly best thought of as a function the simulator executing the script may trigger in response to certain conditions. Like functions, event handlers have named parameter lists and return values, although they also differ in a few important regards.

Whereas the built-in and user-defined functions are global, event handlers are local--the only construct in LSL that is limited to a given state's scope. That is, event handlers are only valid within the state that contains them. State changes may only be made from event handlers.

Event handlers cannot be called directly from functions. Though event handlers may be exited with a return, they are return type void.


Events
There is no comment on this page. [Display comments/form]