llSetParcelMusicURL
function
Function syntax
llSetParcelMusicURL(string url// Streaming audio URL string.
);- Delay
- 2 s
- Energy
- 10
Sets the streaming audio URL for the parcel object is on
The object owner must also be the land owner. If the land is deeded to a group the object will need to be deeded to the same group for this function to work.
llSetParcelMusicURL("");Examples
Section titled “Examples”Example 1
20 collapsed lines
// 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); } } }}See also
Section titled “See also”Functions
Section titled “Functions”llGetParcelMusicURL— Gets the music stream URL for the parcel object is on
Original wiki source
Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.