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

LSL Wiki : llGetLinkName

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are crawl801.us.archive.org
string llGetLinkName(integer linknum)

Gets the name of linknum in link set.

Compare with llGetLinkNumber.

Returns NULL_KEY if not in set.

*You can use the LINK_* flag LINK_ROOT for the linknum, but don't even think about using LINK_THIS (it won't work). You can just use llGetObjectName( ) in that case anyway.

Q: Weird. Shouldn't it return "" (empty string)?
A: Well, it shouldn't return NULL_KEY, that's for sure. It does though. Crazy, huh?
A: Since LSL has no NULL data type, and objects can be named with an empty string, NULL_KEY is a valid response- Marv


This article wasn't helpful for you? Maybe the related article at the LSL Portal is able to bring enlightenment.

Functions | Link
Comments [Hide comments/form]
the NULL_KEY is probably to differentiate between an object that has an empty name and a non-existent object. (although I suppose if someone was weird they could name an object 000000-0000-0000-etc...)
-- NeoRebus (2004-07-05 00:43:36)
llGetLinkNumber returns an integer, which function did you mean Zebra?
-- BlindWanderer (2006-10-31 18:11:50)
Attach a comment to this page: