[Opensim-users] Example scriipt for Windlight wrong?

Justin Clark-Casey jjustincc at googlemail.com
Tue Jan 1 23:08:14 UTC 2013


The syntax is wrong, there should not be braces around lsGetWindlightScene, probably a wiki-format artifact.  If these 
are removed then the script works if LS is enabled.  I have corrected the wiki.

On 28/12/12 02:51, InuYasha Meiji wrote:
>
> It would seem something isn't right about en example script found on : http://opensimulator.org/wiki/LsGetWindlightScene
>
> I think I have the correct permissions set, because the lsSetWindlightScene
> <http://opensimulator.org/wiki/LsSetWindlightScene> script works fine.  I wanted to use the lsGetWindlightScene command,
> to use a water color, I selected in the client's windlight settings and share with other.  Using this command should
> show me what to place in my scripted item to set the windlight setting number for to get the same color.  Eventually to
> create a small weather system using windlight for cloudyness and more.  It seems this example won't compile.  Any Ideas
> why not?
>
> list  rules_to_get =[  WL_WATER_COLOR];
> list  settings;
>
>    default  {
>      state_entry()  {
>        settings =[[lsGetWindlightScene]](rules_to_get);
>        llOwnerSay("Water color is:"+llList2String(settings,1));
>      }
>    }
>
>
> thanks for your time.
>


-- 
Justin Clark-Casey (justincc)
OSVW Consulting
http://justincc.org
http://twitter.com/justincc



More information about the Opensim-users mailing list