[Opensim-users] How to get scripts to run in Diva
Garmin Kawaguichi
garmin.kawaguichi at magalaxie.com
Tue May 17 10:42:50 UTC 2011
Don't forget to add an empty line at the beginning of the script as in the example below
GCI
----- Original Message -----
From: Kay McLennan
//
//"Teleport Script NEW" by Rupudiator quann
key lastAVkey = NULL_KEY;
string fltText = "Next Floor";
vector dest = <109.000,115.000,42.625>; // X Y Z coordinates
init()
{
llSetSitText("Teleport");
llSetText(fltText, <1,1,1>, 1);
llSitTarget(dest-llGetPos(), <0,0,0,1>);
}
default
{
state_entry()
{
init();
}
touch_start(integer i)
{
init();
}
changed(integer change)
{
key currentAVkey = llAvatarOnSitTarget();
if (currentAVkey != NULL_KEY && lastAVkey == NULL_KEY)
{
lastAVkey = currentAVkey;
if (!(llGetPermissions() & PERMISSION_TRIGGER_ANIMATION))
llRequestPermissions(currentAVkey,PERMISSION_TRIGGER_ANIMATION);
llSleep(0.5);
llUnSit(currentAVkey);
llStopAnimation("sit");
llResetScript();
}
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-users/attachments/20110517/0d703050/attachment.html>
More information about the Opensim-users
mailing list