Teleporting

The teleport command can be used to teleport Corrade around using LSL. The script takes as parameter a region name and a position vector (in local coordinates):

default {
    state_entry() {
        llInstantMessage(CORRADE, 
            wasKeyValueEncode(
                [
                    "command", "teleport",
                    "group", GROUP,
                    "password", PASSWORD,
                    "entity", "region",
                    "region", "SUNO Regents",
                    "position", "<24.647963, 50.326118, 1006.28479>"
                ]
            )
        );
    }
}

This will make Corrade teleport to the region SUNO Regents and land at position <24.647963, 50.326118, 1006.28479>. Note that Corrade is still subject to teleport routing and that, given a teleport destination set with the land tools, Corrade may not land at the specified position.

Index


secondlife/scripted_agents/corrade/tutorials/teleporting.txt ยท Last modified: 2022/11/24 07:45 by 127.0.0.1

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.