“LlGetRegionName”的版本间的差异
(创建页面,内容为“{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}} {{函数详情 |函数名 = string llGetRegionName( ); |参数= 参数: |返回值= 返回值…”) |
|||
| 第3行: | 第3行: | ||
{{函数详情 | {{函数详情 | ||
| − | |函数名 = | + | |函数名 = 函数:string llGetRegionName( ); |
|参数= 参数: | |参数= 参数: | ||
|返回值= 返回值:返回当前区域名称的字符串 | |返回值= 返回值:返回当前区域名称的字符串 | ||
2020年6月22日 (一) 03:44的最新版本
| 首页 | 函数 | 事件 | 类型 | 操作符 | 常数 | Flow Control | Script Library | Categorized Library | Tutorials |
| 函数名 |
|---|
| 函数:string llGetRegionName( ); |
| 参数: |
| 返回值:返回当前区域名称的字符串 |
| 注意事项 |
|---|
| 无 |
| 示例 |
|---|
// 在标准客户机的映射中说明“将SLURL复制到剪贴板”会说什么
string wwGetSLUrl()
{
string globe = "http://maps.secondlife.com/secondlife";
string region = llGetRegionName();
vector pos = llGetPos();
string posx = (string)llRound(pos.x);
string posy = (string)llRound(pos.y);
string posz = (string)llRound(pos.z);
return (globe + "/" + llEscapeURL(region) +"/" + posx + "/" + posy + "/" + posz);
}
default
{
state_entry()
{
llOwnerSay( wwGetSLUrl() );
}
}
|
| 相关函数 |
|---|
| llRequestSimulatorData |
| 相关事件 |
|---|
| 无 |