“LlGetEnvironment”的版本间的差异

来自人工智能助力教育知识百科
跳转至: 导航搜索
Qmf讨论 | 贡献
 
第4行: 第4行:
 
{{函数详情
 
{{函数详情
 
|函数名 = Function: list llGetEnvironment( vector pos, list params )
 
|函数名 = Function: list llGetEnvironment( vector pos, list params )
|参数= 参数:*vector pos–A position in region coordinates. X and Y are in region coordinates and determine the parcel. If X and Y are both -1, the environment for the region is inspected. Z is the altitude in the region and determines which sky track is accessed.
+
|参数= 参数:
 +
*vector pos–A position in region coordinates. X and Y are in region coordinates and determine the parcel. If X and Y are both -1, the environment for the region is inspected. Z is the altitude in the region and determines which sky track is accessed.
 
*list params–A list of parameters to retrieve from the current environment.
 
*list params–A list of parameters to retrieve from the current environment.
 
|返回值= 返回值:返回一个列表,其中包含作为属性列表的包裹和区域的当前环境值。接受要在参数中检索的属性列表,并按照请求的顺序返回它们。
 
|返回值= 返回值:返回一个列表,其中包含作为属性列表的包裹和区域的当前环境值。接受要在参数中检索的属性列表,并按照请求的顺序返回它们。

2021年1月25日 (一) 07:37的最新版本

Template:Needs Translation/


函数名
Function: list llGetEnvironment( vector pos, list params )
参数:
  • vector pos–A position in region coordinates. X and Y are in region coordinates and determine the parcel. If X and Y are both -1, the environment for the region is inspected. Z is the altitude in the region and determines which sky track is accessed.
  • list params–A list of parameters to retrieve from the current environment.
返回值:返回一个列表,其中包含作为属性列表的包裹和区域的当前环境值。接受要在参数中检索的属性列表,并按照请求的顺序返回它们。
注意事项
注意事项
  • 如果脚本不能在请求的包中运行,该函数将返回一个空列表,并在调试通道中发出警告。
示例
default
{
    touch_start(integer total_number)
    {
        list environment = llGetEnvironment(llGetPos(), [SKY_TRACKS, SKY_AMBIENT, SKY_CLOUDS]);
        llOwnerSay(llDumpList2String(environment, ", "));
    }
}
相关函数
llReplaceAgentEnvironment

llSetAgentEnvironment llGetSunDirection llGetRegionSunDirection llGetMoonDirection llGetRegionMoonDirection llGetSunRotation llGetRegionSunRotation llGetMoonRotation llGetRegionMoonRotation llGetDayLength llGetRegionDayLength llGetDayOffset llGetRegionDayOffset llGetTimeOfDay llGetRegionTimeOfDay

相关事件