“LlGetEnvironment”的版本间的差异
(清空页面) (1个标签:清空) |
|||
第1行: | 第1行: | ||
+ | {{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}} | ||
+ | |||
+ | {{函数详情 | ||
+ | |函数名 = 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. | ||
+ | |返回值= 返回值:返回一个列表,其中包含作为属性列表的包裹和区域的当前环境值。接受要在参数中检索的属性列表,并按照请求的顺序返回它们。 | ||
+ | |||
+ | |注意事项= | ||
+ | 注意事项 | ||
+ | *如果脚本不能在请求的包中运行,该函数将返回一个空列表,并在调试通道中发出警告。 | ||
+ | |||
+ | |示例= | ||
+ | <pre> | ||
+ | default | ||
+ | { | ||
+ | touch_start(integer total_number) | ||
+ | { | ||
+ | list environment = llGetEnvironment(llGetPos(), [SKY_TRACKS, SKY_AMBIENT, SKY_CLOUDS]); | ||
+ | llOwnerSay(llDumpList2String(environment, ", ")); | ||
+ | } | ||
+ | } | ||
+ | </pre> | ||
+ | |||
+ | |相关函数= | ||
+ | [[llReplaceAgentEnvironment]] | ||
+ | [[llSetAgentEnvironment]] | ||
+ | [[llGetSunDirection]] | ||
+ | [[llGetRegionSunDirection]] | ||
+ | [[llGetMoonDirection]] | ||
+ | [[llGetRegionMoonDirection]] | ||
+ | [[llGetSunRotation]] | ||
+ | [[llGetRegionSunRotation]] | ||
+ | [[llGetMoonRotation]] | ||
+ | [[llGetRegionMoonRotation]] | ||
+ | [[llGetDayLength]] | ||
+ | [[llGetRegionDayLength]] | ||
+ | [[llGetDayOffset]] | ||
+ | [[llGetRegionDayOffset]] | ||
+ | [[llGetTimeOfDay]] | ||
+ | [[llGetRegionTimeOfDay]] | ||
+ | |||
+ | |||
+ | |相关事件= | ||
+ | |||
+ | |||
+ | }} |
2021年1月25日 (一) 07:36的版本
首页 | 函数 | 事件 | 类型 | 操作符 | 常数 | Flow Control | Script Library | Categorized Library | Tutorials |
函数名 |
---|
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.
|
返回值:返回一个列表,其中包含作为属性列表的包裹和区域的当前环境值。接受要在参数中检索的属性列表,并按照请求的顺序返回它们。 |
注意事项 |
---|
注意事项
|
示例 |
---|
default { touch_start(integer total_number) { list environment = llGetEnvironment(llGetPos(), [SKY_TRACKS, SKY_AMBIENT, SKY_CLOUDS]); llOwnerSay(llDumpList2String(environment, ", ")); } } |
相关事件 |
---|