Fileref:lsl/sloodle url loader.lsl

From SLIS Second Life Wiki

Jump to: navigation, search

Image:folder.gif (parent)

Given the large script delay incurred by the "llLoadURL" LSL function, it is often necessary to off-load the function to other scripts. This script will respond to a link message requesting a URL to be loaded, allowing the originating script to continue freely.

The link message must be given on the SLOODLE_CHANNEL_OBJECT_LOAD_URL channel (as defined in Sloodle channels). The string parameter should be the URL, and the key parameter should be the UUID of the avatar who is to receive the URL.


Contents

[edit] Future Work

  • Allow the specification of a message to be display in the URL dialog.
  • Re-structure the script to allow multiple versions of the script in a single prim, thereby allowing parallelization within a single prim (perhaps this could be done using numbers in the script name?)


[edit] Data

This script stores the following data:

[edit] Constants

  • integer SLOODLE_CHANNEL_OBJECT_LOAD_URL = the link message channel to receive URL loading requests on


[edit] States

This script is very simple, having a single state with a single event.

[edit] default

  • link_message = if the link message number matches SLOODLE_CHANNEL_OBJECT_LOAD_URL, then provide the URL in the string parameter to the avatar identified by the key parameter (the message of the URL dialog will be blank)


This page is part of the Sloodle documentation
SloodleDocs Home | User Documentation | Administrator Documentation | Developer Documentation | Sloodle Wiki Home
Personal tools