Bugün Second Life tek yerde Hediyeler ve freebie’ler her saat güncellenir 7 dil Ücretsiz mağazanı ekle
12:49 SLT Etkinliğini ekle+ Ekle
Grid sorunu
  • Planlı: Scheduled Billing Maintenance, 16 Kas Pzt 09:30–10:30 SLT
  • Grid durumu: Unscheduled Group Chat Maintenance (investigating)
  • Şimdi: UUtopia'da Unitarian Universalist Cumartesi Ayini
  • Şimdi: The Dharma of Community: Budist Toplum ve Householder
  • Şimdi: SLCS Harvest Fest: oyunlar, müzik ve eğlence
  • 14:00 SLT: Cascadia Moondance'te NAD GOUGH canlı performans, 14:00 SLT
  • Haberler: REZZ MALL: Second Life markaları tek bir web mağazasında
  • Viewer: Second Life Viewer 26.5 ile sohbet yenileniyor
  • Planlı: Scheduled Billing Maintenance, 16 Kas Pzt 09:30–10:30 SLT
  • Grid durumu: Unscheduled Group Chat Maintenance (investigating)
  • Şimdi: UUtopia'da Unitarian Universalist Cumartesi Ayini
  • Şimdi: The Dharma of Community: Budist Toplum ve Householder
  • Şimdi: SLCS Harvest Fest: oyunlar, müzik ve eğlence
  • 14:00 SLT: Cascadia Moondance'te NAD GOUGH canlı performans, 14:00 SLT
  • Haberler: REZZ MALL: Second Life markaları tek bir web mağazasında
  • Viewer: Second Life Viewer 26.5 ile sohbet yenileniyor
LSL script

LSL teleporter script: sit to teleport in the same region

Free LSL sit teleporter for Second Life: sit on a pad and travel to a sky box, another floor or another spot in the same region, then the pad returns home.

43 satır ·

Need to get visitors up to your sky box or across a big store? This sit teleporter carries them there: they sit on the pad, the pad moves to the destination in the same region, lets them stand up there and goes back home. It uses llSetRegionPos, so it can travel any distance inside the region in one step.

lsl-teleporter-script.lsl · 43 satır Bu scripti denetle
// Sit Teleporter (same region) - free LSL script from WhatSL (https://whatsl.com/scripts/lsl-teleporter-script)
// Free to use, change and put in your own creations, also ones you sell.
//
// Sit on the object and it carries you to DESTINATION in the same region, then returns home.
// Good for a sky box, a store floor or the other side of your land.
// To get coordinates: stand where you want to arrive; the viewer's top bar shows (x, y, z).
// The object must not be physical, and it must be allowed to move onto the destination parcel.

vector DESTINATION = <128.0, 128.0, 300.0>;  // region coordinates in THIS region
string SIT_TEXT    = "Teleport";
string HOVER_TEXT  = "Sit to teleport";

default
{
    state_entry()
    {
        llSitTarget(<0.0, 0.0, 0.1>, ZERO_ROTATION);
        llSetSitText(SIT_TEXT);
        llSetText(HOVER_TEXT, <1.0, 1.0, 1.0>, 1.0);
    }

    changed(integer change)
    {
        if (change & CHANGED_LINK)
        {
            key av = llAvatarOnSitTarget();
            if (av == NULL_KEY) return;
            vector home = llGetPos();
            if (llSetRegionPos(DESTINATION))
            {
                llSleep(0.3);
                llUnSit(av);
                llSleep(0.3);
                llSetRegionPos(home);
            }
            else
            {
                llUnSit(av);
                llRegionSayTo(av, 0, "Sorry, I could not move there. Ask the owner to check the destination.");
            }
        }
    }
}

Ücretsizdir: kullanabilir, değiştirebilir ve sattıkların dahil kendi yapımlarına koyabilirsin.

How to set it up

  1. Stand where visitors should arrive and note the coordinates in the viewer's top bar.
  2. Put those numbers in DESTINATION, for example <120.5, 88.0, 2500.0>.
  3. Add the script to a pad or sign and save. Sit on it to test.
  4. For a return trip, make a second pad at the destination that points back.

Settings

  • DESTINATION: the region coordinates to travel to, in this region.
  • SIT_TEXT: the word on the right-click menu instead of "Sit".
  • HOVER_TEXT: the floating text above the pad.

Tips

  • Set the pad's click action to Sit in the Edit window, so a normal left click starts the trip.
  • Arrive a little above the floor (about 0.5 m) so visitors land softly.
  • The pad must be allowed onto the destination parcel. If the destination is on another parcel that blocks object entry, the trip fails and the visitor is told.

Frequently asked questions

Can it teleport to another region?

No. This teleporter works inside one region. For other regions, give visitors a landmark or a SLURL.

Why does the trip fail?

The destination may be outside the region (coordinates must be 0 to 256 for x and y), the pad may be physical, or the destination parcel may not allow objects to enter.

Is it safe to leave out?

Yes. It only moves when someone sits on it and always returns to where it was.

Kendi scriptini denetle: LSL sözdizimi denetleyicisi →

Diğer scriptlerTüm scriptler
LSL script · 55 satır

LSL kapı scripti: dokununca açılır, kendi kendine kapanır

Second Life için ücretsiz LSL kapı scripti. Dokununca açılıp kapanır, kapı menteşesi üzerinde döner ve birkaç saniye sonra kendiliğinden kapanır. Sesler isteğe bağlı.

LSL script · 69 satır

LSL sit and pose script for chairs and pose balls

Free LSL sit script for Second Life chairs, benches and pose balls: sit and play your own animation, set the sit position, hide the ball while in use.

LSL script · 96 satır

LSL tip jar script with thank-you message and total

Free LSL tip jar script for Second Life clubs, DJs, hosts and stores: quick pay buttons, a thank-you message, the total and last tipper in floating text.