Don't click here unless you want to be banned.

LSL Wiki : LibraryPrimLister

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are ia360925.us.archive.org

PrimLister


List the number and name all the child prims in a complex object.

Some LSL functions use the prim number. Sometimes, the prim you think is 2 is actually 3. This script is an easy way check that.

DumpData() {
    integer i;
    integer j = llGetNumberOfPrims();
    for( i=1; i<=j; ++i ) {
        llOwnerSay((string)i + ": " + llGetLinkName(i));
    }
}


default {
    state_entry() {
        string scriptName = llGetScriptName();
        llOwnerSay(scriptName);
        llOwnerSay( llGetObjectName() );
        DumpData();
        llRemoveInventory(scriptName);
    }
}

ScriptLibrary | Dolyn's Scripts
There is no comment on this page. [Display comments/form]