25 lines
638 B
Plaintext
25 lines
638 B
Plaintext
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));
|
|
}
|
|
}
|
|
}
|