LsClearWindlightScene
From OpenSimulator
(Difference between revisions)
m |
(Add script exemple) |
||
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 | ||
+ | { | ||
+ | state_entry() | ||
+ | { | ||
+ | llSay(PUBLIC_CHANNEL, "Touch to see lsClearWindlightScene usage."); | ||
+ | llSetText("lsClearWindlightScene", <1.0, 1.0, 1.0>, 1.0); | ||
+ | } | ||
+ | |||
+ | touch_start(integer number) | ||
+ | { | ||
+ | lsClearWindlightScene(); | ||
+ | llSay(PUBLIC_CHANNEL, "The Windlight Scene is now cleared ..."); | ||
+ | } | ||
+ | } | ||
+ | </source> | ||
== See Also == | == See Also == | ||
Line 26: | Line 49: | ||
=== 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]] | [[Category:Scripting]] |
Revision as of 00:57, 19 December 2020
Contents |
lsClearWindlightScene
Function
void lsClearWindlightScene();
Remove Windlight settings from a region.
Caveats
LightShare must be enabled in the Simulator.
This script function is restricted to the region owner only.
Examples
// // lsClearWindlightScene Script Exemple // Author: djphil // default { state_entry() { llSay(PUBLIC_CHANNEL, "Touch to see lsClearWindlightScene usage."); llSetText("lsClearWindlightScene", <1.0, 1.0, 1.0>, 1.0); } touch_start(integer number) { lsClearWindlightScene(); llSay(PUBLIC_CHANNEL, "The Windlight Scene is now cleared ..."); } }