LsClearWindlightScene

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(Created page with "= lsClearWindlightScene = == Function == '''void''' lsClearWindlightScene(); Remove [http://wiki.secondlife.com/wiki/WindLight_settings Windlight settings] from a region. == C...")
 
 
(4 intermediate revisions by 2 users not shown)
Line 9: Line 9:
  
 
This script function is restricted to the region owner only.
 
This script function is restricted to the region owner only.
 +
 +
== Examples ==
 +
<source lang="lsl">
 +
//
 +
// 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 ...");
 +
    }
 +
}
 +
</source>
  
 
== See Also ==
 
== See Also ==
Line 15: Line 42:
 
* [[lsSetWindlightScene]]
 
* [[lsSetWindlightScene]]
 
* [[lsSetWindlightSceneTargeted]]
 
* [[lsSetWindlightSceneTargeted]]
 +
* [[lsClearWindlightScene]]
  
 
=== Articles ===
 
=== Articles ===
Line 26: Line 54:
 
=== Introduced ===
 
=== Introduced ===
 
* http://justincc.wordpress.com/2010/11/08/this-two-weeks-in-opensim-dev-week-ending-saturday-6th-november-2010/
 
* http://justincc.wordpress.com/2010/11/08/this-two-weeks-in-opensim-dev-week-ending-saturday-6th-november-2010/
 +
 +
[[Category:Scripting]]

Latest revision as of 01: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