Requests the Agent ID for the agent identified by name from the dataserver. The name given may be either the current name of an avatar or a historical name that has been used in the past. If no agent can be found with the supplied name this function returns the value NULL_KEY.
Returns a handle (a key) that can be used to identify the request when the dataserver event is raised.
The agent being searched for with this function does not need to be signed on to Second Life.
key llRequestUserKey( string username );
Returns a key
key name_key_query;
default
{
state_entry()
{
name_key_query = llRequestUserKey("rider.linden");
}
dataserver(key queryid, string data)
{
if ( name_key_query == queryid )
{
llSay(0, "The key for this user is : " + data);
}
}
}
Names are always provided in the form "First[ Last]" or "first[.last]" (first name with an optional last name.) If the last name is omitted a last name of "Resident" is assumed. Case is not considered when resolving agent names.