Template:Needs Translation/
函数名
|
Function: llSetParcelMusicURL( string url );
|
参数:
•字符串url
对象所有者也必须是土地所有者。如果土地被指定给一个组,则需要将该对象指定给同一组才能使该功能发挥作用。
|
返回值:设置打开包裹对象的流式音频URL
|
示例
|
示例1
// This script changes the music URL based on time of day.
integer night = FALSE;
string nighturl = "http://205.188.215.228:8006";
string dayurl = "http://208.122.59.30:7156";
default
{
state_entry()
{
llSetTimerEvent(10);
}
timer()
{
vector pos = llGetSunDirection();
if ((pos.z < -.75) != night)
{
night = !night;
if (night)
{
llSetParcelMusicURL(nighturl);
}
else
{
llSetParcelMusicURL(dayurl);
}
}
}
}
|