[Opensim-dev] new LSL state to implement

Frisby, Adam adam at deepthink.com.au
Tue Jul 29 07:51:06 UTC 2008


This is much better handled with some kind of additional function.

Perhaps osGetRuntimeEnvironment();

Regards,

Adam

From: opensim-dev-bounces at lists.berlios.de [mailto:opensim-dev-bounces at lists.berlios.de] On Behalf Of Lc
Sent: Tuesday, 29 July 2008 12:24 AM
To: opensim-dev at lists.berlios.de
Subject: [Opensim-dev] new LSL state to implement

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/ce5b0e16/attachment-0001.html>


More information about the Opensim-dev mailing list