欢迎来到Simtown.cn---SIM城镇

2007年5月17日星期四

脚本指南之Simulator

Second Life 世界由一些互相联系唯一命名的simulators (或者叫做sims or regions) 定位于一个 Cartesian地图上. 相邻的sims 之间横向和纵向联接但不会对角联接.

sim的大小是固定的: 256m x 256m. Objects 最高高度为 768m 在 z 轴 (height) (physical objects 通常 4096m). Sims 包含 land, 即使它是在水中.任何开放部分在两个不相邻sim间在客户端表现为water, 但是不能访问 (你会看到一个不存在的墙).

每个sim有15,000个 primitives 和100个agents主体的限制,但是随着服务器和客户端性能的不断增加,在不远的未来这个数字还会增加. (而最开始, 限制的是10,000个 prims 和大约 20个 agents.)

一个 sim 包含 objects and agents , 模拟 physics, 运行 scripts, 和缓冲 caches 释放 object 和 texture 数据到clients. Sims 也触发 attachments,不计算在 sim的prim 限制之内.

Simulator 的名字限制在20个字符(包括空格).
函数

llCloud
返回云层密度.

llEdgeOfWorld
Determines off-world locations.

llGetDate
Returns current date. 返回当前日期

llGetGMTclock
Returns time since midnight in GMT.

llGetLandOwnerAt
Returns the land owner at a given location.
返回土地拥有者的位置

llGetParcelFlags
Returns a bitfield of the parcel's flags, eg.
allows outside scripts, etc.返回信息包的标志,
比如是否允许外部脚本等等

llGetRegionCorner
Returns simulator's position in global coordinates.
返回SIM在全局中的位置

llGetRegionFlags
Returns a bitfield of the region's flags, eg.
sandbox or terraforming status. 返回一个区域的标志,
比如沙箱或者terraforming状态

llGetRegionFPS
Returns the FPS of the sim the script is running in.
返回sim中脚本执行的fps

llGetRegionName
Returns the name of the sim the script is running in.
返回脚本执行所在的sim的名字

llGetRegionTimeDilation
Returns the time dilation of the sim the script
is running in.返回脚本执行所在的sim的时间膨胀

llGetSimulatorHostname
Returns the simulator's location on the Internet.
返回sim在因特网的位置

llGetSunDirection
Returns a vector pointing towards the sun from
the object's current position.

llGetTimeOfDay
Returns the time in seconds since simulator midnight.

llGetWallclock
Returns time since midnight in PST.

llGround
Returns ground height. 返回地面高度

llGroundSlope
Returns ground slope. 返回地面坡度

llGroundNormal
Returns the normal vector to the ground. 返回地面的标准矢量

llGroundContour
Returns ground contour. 返回地面等高线

llModifyLand
Changes the height of the land the script is over.
改变地形高度

llOverMyLand
Determines if object is over land owned by the
object's owner. 确定物体经过的土地是否是为物体所有者所有

llParcelMediaCommandList
Changes parcel video settings. 改变视频包设置

llParcelMediaQuery
Returns parcel video settings. 返回视频包设置

llRequestSimulatorData
Returns simulator properties via the dataserver event.
通过dataserver事件返回sim的属性

llSetParcelMusicURL
Controls parcel music settings. 控制音乐包设置

llscriptDanger
Determines if land is editable, allows rez,
and disallows scripts. 确定土地是否可以编辑,是否允许建设,
是否不允许脚本

llWater
Returns water level height. 返回水面高度

llWind
Returnswind velocity. 返回风速

没有评论:

欢迎来到Simtown.cn---SIM城镇