2020年7月2日 (四) 02:35的最新版本
Template:Needs Translation/
| 函数名
|
| Function: float llGetSimStats( integer stat_type );
|
| 参数:integer stat_type – SIM_STAT_* flag
|
| 返回值:返回一个浮点数,该浮点数是所请求的统计量。
|
| 示例
|
示例1
default
{
touch_start(integer num_detected)
{
float pct_chars_stepped = llGetSimStats(SIM_STAT_PCT_CHARS_STEPPED);
llSay(0,
"The percentage of pathfinding characters updated each frame was "
+ (string)pct_chars_stepped + "averaged over the last minute. The "
+ "value corresponds to the 'Characters Updated' stat in the "
+ "viewer's Statistics Bar. ");
}
}
|
| 相关函数
|
| llAbs – integer version of llFabs
|
附录:(表格)