Skip to content

llGetKey

key llGetKey()

Returns the key of the prim the script is attached to.

Get the key for the object which has this script.

default
{
state_entry()
{
llOwnerSay(llGetKey());
llOwnerSay(llGetLinkKey(llGetLinkNumber()));
}
}

This example demonstrates getting the key of the prim the script is in and comparing it with the key obtained from link functions.