LsSetWindlightScene

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (Functions)
m
 
Line 51: Line 51:
 
=== All Issues ===
 
=== All Issues ===
 
* http://opensimulator.org/mantis/search.php?project_id=1&search=lsSetWindlightScene&hide_status_id=-2
 
* http://opensimulator.org/mantis/search.php?project_id=1&search=lsSetWindlightScene&hide_status_id=-2
 +
 +
 +
[[Category:Scripting]]

Latest revision as of 15:53, 24 October 2015

Contents

[edit] lsSetWindlightScene

[edit] Function

integer lsSetWindlightScene(list rules);

Set a list of Windlight settings in the scene to new values

[edit] Caveats

The list used by this function cannot be passed directly from lsGetWindlightScene without triggering C# exceptions from the Simulator.

LightShare must be enabled in the Simulator.

This script function is restricted to the region owner only.

[edit] Examples

list settings = [ WL_WATER_COLOR, <4.000000,38.000000,64.000000> ];
  integer success;
  default {
    state_entry() {
      success = lsSetWindlightScene(settings);
      if ( success == TRUE ) {
        llOwnerSay("Success!");
      } else {
        llOwnerSay("Failed!");
      }
    }
  }

[edit] Notes

Rules contain pairs of data in the form of the parameter followed by the value to set.

Setting new parameters with this function commits the new changes to the regionwindlight database table immediately.

Excessive use of this function can cause unnecessary database requests.

Use lsSetWindlightSceneTargeted if you wish to avoid database loading with this function.

[edit] See Also

[edit] Functions

[edit] Articles

[edit] Deep Notes

[edit] All Issues

Personal tools
General
About This Wiki