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 <X,Y,Z> on the object’s description.
key avatar;
default
{
state_entry()
{
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)
{
llResetScript();
}
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);
llUnSit(avatar);
}
}
}
}
Related posts:
- Simple Device To Give The Whole Inventory
- Simple Door Script, with three states
- A tool to aid designing clothes
- Simple slideshow projector
- Three Years Late… But HTML-On-A-Prim is Here!
Related posts brought to you by Yet Another Related Posts Plugin.




