Initial Upload
This commit is contained in:
24
SoundBoardAndSpeaker/SpeakerControl.lsl
Normal file
24
SoundBoardAndSpeaker/SpeakerControl.lsl
Normal file
@ -0,0 +1,24 @@
|
||||
integer speaker_listen_chan = 1347453636;
|
||||
string this_speaker = "1";
|
||||
|
||||
default
|
||||
{
|
||||
state_entry() {
|
||||
llListen(speaker_listen_chan, "", NULL_KEY, "");
|
||||
}
|
||||
|
||||
on_rez(integer start_param) {
|
||||
llResetScript();
|
||||
}
|
||||
|
||||
touch_end(integer total_number) {
|
||||
}
|
||||
|
||||
listen(integer channel, string name, key id, string message) {
|
||||
list call_parts = llParseString2List(message, ["+"], []);
|
||||
if (llList2String(call_parts, 0) == this_speaker) {
|
||||
llPlaySound(llList2String(call_parts, 1),1.0);
|
||||
//llOwnerSay("speaker uuid - " + llList2String(call_parts, 1));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user