[Opensim-dev] new LSL state to implement

Lc lcc1967 at gmail.com
Tue Jul 29 07:24:12 UTC 2008


hello

I think it will be wise to implement a new LSL state called OSGrid that will
be called everytime a script is run under any OSGrid environment.

Why do we need that ?
We need that system to know on wich environment the script is working and
exit nicely if needed.

This state should be called like the usual default state ONLY under osgrid.
It will avoid script crashing nicely.


As usual, this idea is open to comment.

SM
sample:




default
int ok;
{
  state_entry()
  {
    llSay(0, "Hello, Avatar!");
  }

  touch(integer total_number)
  {
    llSay(0, "Touched.");
    if (ok ==0) {
       llSay(0,"Sorry, OSgrid only");
    }
  }
}

state OSGrid {
   ok=1;
   llSay(0,"We are under OS...");
}

}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-dev/attachments/20080729/e79a34ad/attachment-0001.html>


More information about the Opensim-dev mailing list