[Opensim-dev] new LSL state to implement

Lc lcc1967 at gmail.com
Tue Jul 29 08:00:48 UTC 2008


but any OS functions will depend of the grid itself.
I mean OsGetRuntimeEnvironment will failed under any non OS grid unless LL
agrreed to add that function in there Core.

with the event, we are not CoreGrid dependant.


Sm



On Tue, Jul 29, 2008 at 9:51 AM, Frisby, Adam <adam at deepthink.com.au> wrote:

>  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...");
> }
>
> }
>
> _______________________________________________
> Opensim-dev mailing list
> Opensim-dev at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/opensim-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-dev/attachments/20080729/0bac4022/attachment-0001.html>


More information about the Opensim-dev mailing list