Skip to content
lsl.devlsl.devLSL Dev

Category:LSL Link/Get

This is a historical wiki category. Explore the current topic guides →

LSL Header: {{LSL Header|ml=*}}
Box: {{Box|Useful Snippets|2=
list GetLinkDetails(integer link, list OBJECT_FLAGS)
{//simple wrapper
    return llGetObjectDetails(llGetLinkKey(link), OBJECT_FLAGS);
}

key GetLinkCreator(integer link)
{
    return llList2Key(llGetObjectDetails(llGetLinkKey(link), (list)OBJECT_CREATOR) + NULL_KEY, 0);
}

key GetLinkGroup(integer link)
{
    return llList2Key(llGetObjectDetails(llGetLinkKey(link), (list)OBJECT_GROUP) + NULL_KEY, 0);
}

string GetLinkDesc(integer link)
{
    return (string)llGetObjectDetails(llGetLinkKey(link), (list)OBJECT_DESC);
}

vector GetLinkLocalPos(integer link)
{
    return llList2Vector(llGetLinkPrimitiveParams(link, (list)PRIM_POS_LOCAL), 0);
}
 
rotation GetLinkLocalRot(integer link)
{
    return llList2Rot(llGetLinkPrimitiveParams(link, (list)PRIM_ROT_LOCAL), 0);
}
}}
Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.