News: SMF - Just Installed!
Welcome, Guest. Please login or register.
Did you miss your activation email?

 Raglan Shire ForumsRaglan ShireThe VaultScriptsTopic: Build Link Info (displays link name, number, local pos, size, local rot)
Pages: [1]   Go Down
Print
Author Topic: Build Link Info (displays link name, number, local pos, size, local rot)  (Read 445 times)
Pipa Novelli
Friend of the Shire

Offline Offline

Posts: 0


View Profile
« on: February 15, 2016, 06:18:52 PM »

Drop this into the root prim of you build and it will give you the information of each individual prim in that link set when you click on it.

default
{
    state_entry()
    {
        llOwnerSay("Click me to check linked prim numbers");
    }

    touch_end(integer total_number)
    {

        llOwnerSay(
        "\n Touched prim Name = "
        +(string)llGetLinkName(llDetectedLinkNumber(0))
        +"\n Prim number = "
        +(string)llDetectedLinkNumber(0)
        +"\n Local position = "
        +(string)llGetLinkPrimitiveParams(llDetectedLinkNumber(0),[PRIM_POS_LOCAL])
        +"\n Prim size = "
        +(string)llGetLinkPrimitiveParams(llDetectedLinkNumber(0),[PRIM_SIZE])
        +"\n Rotation = "
        +(string)llGetLinkPrimitiveParams(llDetectedLinkNumber(0),[PRIM_ROT_LOCAL])
        );   
    }
}


Logged
Pages: [1]   Go Up
Print
 Raglan Shire ForumsRaglan ShireThe VaultScriptsTopic: Build Link Info (displays link name, number, local pos, size, local rot)
Jump to: