Marks a program as multi-context aware and capable of running multiple instances on the SCI stack.
By default, there can only be one instance of each program LSL script running or suspended in the background at a time. This ensures that every time a program is started, it does not need to be aware of multiple potential contexts; it is either running or not running.
If a program is marked as multi-context aware with this system call, the SCI will allow multiple separate instances of the program to run on the stack. Multi-context aware programs must monitor the cache data sent with BIOS_SCI_STARTED to determine when a "new" copy of the program is launched despite the LSL script not having been reset.
This system call must be sent at least once after the program is first started. It only needs to be called once per script until the script has been reset after "falling off" the stack. For simpler coding, this system call may just be sent every time the program receives BIOS_SCI_STARTED.
See the SCI documentation for more information on mutli-context aware programs.
This system call cannot be used by services or libraries.
llMessageLinked(LINK_ROOT, 0, "BIOS_SCI_MULTI", [script_name]
);
• target | LINK_ROOT |
• integer | n/a |
• key | [script_name] |
Parameter | Description |
---|---|
[script_name] |
String. Must be the name of a running program LSL script. Generally, you should use llGetScriptName, which will allow the script to mark itself as multi-context aware. This must be a running or suspended program. This system call will not work for services, libraries, or programs that are not currently on the stack. |