-
Notifications
You must be signed in to change notification settings - Fork 4
ROOT Script
JasXSL edited this page Nov 29, 2017
·
2 revisions
The #ROOT
script is the standard input gateway for most LSL events in an XOBJ project. This is because events in LSL take up a lot of memory, allowing you to tunnel your events through link messages.
#ROOT is unique in that you can name it anything upon creation. Feel free to name it #MyProject
or whatever you want for your project. The hashtag is not required, but recommended to put it at the top of your project when sorting by name, and making it easier to identify in each linkset.
Here's suggested implementations for some of the common tasks of a root script.
At the top of your #ROOT script, add #define SCRIPT_IS_ROOT
After that, add your project _core.lsl file.
Implementations:
Type | Description |
---|---|
Listener | Allows methods to be run on your modules from outside the linkset |
Touch | Raises touch_start and touch_end events |
Control | Allows a root script to handle control events |
DB3 | Setting up DB3 and tables |