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, ", "));
}
}
|