LsClearWindlightScene

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (Change See Also)
 
Line 16: Line 16:
 
// Author: djphil
 
// Author: djphil
 
//
 
//
 
 
default
 
default
 
{
 
{
 +
    // Event handler triggered when the script is initialized
 
     state_entry()
 
     state_entry()
 
     {
 
     {
 +
        // Send a message to public channel informing users to touch to see usage
 
         llSay(PUBLIC_CHANNEL, "Touch to see lsClearWindlightScene usage.");
 
         llSay(PUBLIC_CHANNEL, "Touch to see lsClearWindlightScene usage.");
 
     }
 
     }
  
 +
    // Event handler triggered when the object is touched
 
     touch_start(integer number)
 
     touch_start(integer number)
 
     {
 
     {
 +
        // Call lsClearWindlightScene function to remove Windlight settings
 
         lsClearWindlightScene();
 
         lsClearWindlightScene();
 +
       
 +
        // Send a message to public channel confirming the Windlight scene is cleared
 
         llSay(PUBLIC_CHANNEL, "The Windlight Scene is now cleared ...");
 
         llSay(PUBLIC_CHANNEL, "The Windlight Scene is now cleared ...");
 
     }
 
     }

Latest revision as of 02:55, 5 March 2024

Contents

[edit] lsClearWindlightScene

[edit] Function

void lsClearWindlightScene();

Remove Windlight settings from a region.

[edit] Caveats

LightShare must be enabled in the Simulator.

This script function is restricted to the region owner only.

[edit] Examples

//
// lsClearWindlightScene Script Exemple
// Author: djphil
//
default
{
    // Event handler triggered when the script is initialized
    state_entry()
    {
        // Send a message to public channel informing users to touch to see usage
        llSay(PUBLIC_CHANNEL, "Touch to see lsClearWindlightScene usage.");
    }
 
    // Event handler triggered when the object is touched
    touch_start(integer number)
    {
        // Call lsClearWindlightScene function to remove Windlight settings
        lsClearWindlightScene();
 
        // Send a message to public channel confirming the Windlight scene is cleared
        llSay(PUBLIC_CHANNEL, "The Windlight Scene is now cleared ...");
    }
}

[edit] See Also

[edit] Functions

[edit] Articles

[edit] Deep Notes

[edit] All Issues

[edit] Introduced

Personal tools
General
About This Wiki