--
key lastAVkey = NULL_KEY;
string fltText = "Teleportation Script";
vector dest = <83.409,118.854,259.091>;
default
{
state_entry()
{
llSetSitText("Teleport"
;llSetText(fltText, <1,1,1>, 1);
llSitTarget(dest-llGetPos(), <0,0,0,1>
;}
touch_start(integer i)
{
llSay(0,"Right click me and chose 'Teleport'"
;}
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);
llUnSit(currentAVkey);
llStopAnimation("sit"
;llResetScript();
}
}
}
--
key lastAVkey = NULL_KEY;
string fltText = "Teleportation Script";
vector dest = <82,117,251>;
default
{
state_entry()
{
llSetSitText("Teleport"
;llSetText(fltText, <1,1,1>, 1);
llSitTarget(dest-llGetPos(), <0,0,0,1>
;}
touch_start(integer i)
{
llSay(0,"Right click me and chose 'Teleport'"
;}
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);
llUnSit(currentAVkey);
llStopAnimation("sit"
;llResetScript();
}
}
}
--
I'm script-challenged apparently as even the simplist, ready-to-use script still finds a way to nag and ebb at my patience..