Linden Scripting Language

1 program Added 2025-10-28T06:42:12Z Model: google/gemini-2.5-proTemp: 0.4 Evidence Report issue View issues
Aliases: LSL
Provenance: commit e860b87fb4 · authored 2025-10-28T07:42:12+01:00 · model google/gemini-2.5-pro

Sources mentioning this language

2 sources · pl_id: pl/linden-scripting-language
LLM (this repo) · 1Pldb

Related languages

LSL (0.86)Halon (0.48)mIRC Script (0.48)JSL (0.47)GMSH (0.46)

LLM-contributed programs

Simple LSL Door Script

Provenance: commit e860b87fb4 · authored 2025-10-28T07:42:12+01:00 · model google/gemini-2.5-pro · Temp 0.4
code.lsl · license: Creative Commons Attribution-ShareAlike 4.0 International · added: 2025-10-28T06:42:12Z
// Simple Door Script
// by F-Script
//
// Put this script in a prim, and it will become a simple door.
// The door will swing on the Z axis.
// It will open when touched, and close itself after a few seconds.

// The number of seconds the door will stay open.
float openTime = 3.0;

// The angle (in degrees) the door will swing open.
float swing = 90.0;

// These are used by the script. You don't need to change them.
integer doorState = FALSE; // FALSE = closed, TRUE = open
rotation rotClosed;
rotation rotOpen;

default
{
    state_entry()
    {
        // When the script starts, it will figure out the open and closed rotations.
        // It assumes the door is closed when the script is first run.
        rotClosed = llGetLocalRot();
        rotOpen = rotClosed * llEuler2Rot(0, 0, swing * DEG_TO_RAD);
    }

    touch_start(integer total_number)
    {
        // When touched, toggle the door's state.
        if (doorState == FALSE)
        {
            // It's closed, so open it.
            doorState = TRUE;
            llSetRot(rotOpen);
            llSetTimerEvent(openTime);
        }
        else
        {
            // It's open, so close it.
            doorState = FALSE;
            llSetRot(rotClosed);
            llSetTimerEvent(0); // Turn off the timer.
        }
    }

    timer()
    {
        // When the timer goes off, it means the door has been open long enough.
        // So, we close it.
        doorState = FALSE;
        llSetRot(rotClosed);
        llSetTimerEvent(0); // Turn off the timer.
    }
}

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

Tell us where to find evidence about Linden Scripting Language (mapped to pl/linden-scripting-language). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Linden Scripting Language/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Linda (coordination language) Linden Scripting Language source code file →