“LlDetectedName”的版本间的差异
(创建页面,内容为“{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}} {{函数详情 |函数名 = Function: string llDetectedName( integer item ); |参数= 参数:i…”) |
|||
| 第5行: | 第5行: | ||
|函数名 = Function: string llDetectedName( integer item ); | |函数名 = Function: string llDetectedName( integer item ); | ||
|参数= 参数:integer item–Index of detection information item does not support negative indexes. | |参数= 参数:integer item–Index of detection information item does not support negative indexes. | ||
| − | |返回值= 返回值:Returns | + | |返回值= 返回值:Returns a string that is the name of the detected item. |
2020年4月13日 (一) 09:44的版本
| 首页 | 函数 | 事件 | 类型 | 操作符 | 常数 | Flow Control | Script Library | Categorized Library | Tutorials |
| 函数名 |
|---|
| Function: string llDetectedName( integer item ); |
| 参数:integer item–Index of detection information item does not support negative indexes. |
| 返回值:Returns a string that is the name of the detected item. |
| 注意事项 |
|---|
注意事项
|
| 示例 |
|---|
default
{
touch_start(integer num_detected)
{
key id = llDetectedKey(0);
string name = llDetectedName(0);// could use llKey2Name(id) here instead
// name is the legacy name, i.e. "John Doe" or if lastname Resident "John Resident"
llSay(PUBLIC_CHANNEL,
"The avatar with the key'" + (string)id + "' is named '" + name + "'.");
}
}
|
| 相关函数 |
|---|
| 无 |
| 相关事件 |
|---|
| 无 |