Difference between revisions of "Who"
Jump to navigation
Jump to search
m (<lsl> tag to <source>) |
m (Replaced <source> with <syntaxhighlight>) |
||
Line 3: | Line 3: | ||
== Function == | == Function == | ||
< | <syntaxhighlight lang="lsl2"> | ||
string Who(key id) | string Who(key id) | ||
{ | { | ||
return "secondlife:///app/agent/" + (string)id + "/inspect"; | return "secondlife:///app/agent/" + (string)id + "/inspect"; | ||
} | } | ||
</ | </syntaxhighlight> | ||
== Example == | == Example == | ||
< | <syntaxhighlight lang="lsl2"> | ||
string Who(key id) | string Who(key id) | ||
{ | { | ||
Line 25: | Line 25: | ||
} | } | ||
} | } | ||
</ | </syntaxhighlight> | ||
[[Category:LSL Examples]] | [[Category:LSL Examples]] |
Revision as of 12:33, 9 March 2023
A simple 'llKey2Name' user-function supporting Viewer URI Name Space.
Function
string Who(key id)
{
return "secondlife:///app/agent/" + (string)id + "/inspect";
}
Example
string Who(key id)
{
return "secondlife:///app/agent/" + (string)id + "/inspect";
}
default
{
touch_start(integer num)
{
llSay(0, "Touched by " + Who(llDetectedKey(0)) + "." );
}
}