Simple Intra-Simulator Teleporting Tool

Also an exercise for my LSL scripting classes, this one is a simple llSetPos teleporting script. The final location is written as on the object’s description.

vector destination;
key avatar;
destination = (vector)llGetObjectDesc();
if (destination == ZERO_VECTOR)
destination = llGetPos();
llWhisper(0, "Configured; destination is " + (string)destination);
llSitTarget(destination, ZERO_ROTATION);
on_rez(integer start_param)
changed(integer change)
{ // something changed
if (change & CHANGED_LINK)
{ // and it was a link change
llSleep(0.5); // llUnSit works better with this delay
avatar = llAvatarOnSitTarget();
if (avatar != NULL_KEY)
// llInstantMessage(avatar, "Going to " + (string)destination);

CC BY 4.0 Simple Intra-Simulator Teleporting Tool by Gwyneth Llewelyn is licensed under a Creative Commons Attribution 4.0 International License.

About Gwyneth Llewelyn

I'm just a virtual girl in a virtual world...