HUD Communication
De DigiWiki.
Lets say your building a item that is to listen to a remote object (HUD, or Relay) as well as yourself, you might find this handy. This will prevent your attachments from listening to other peoples HUDs, also allowing you to give it commands by chat.
default { state_entry() { llListen(1,"","",""); // Notice "llListen(1,"","","");" does not list a owner! Leave this alone. // There is no need for a owner. You may however still use another channel. } listen(integer channel, string name, key id, string message) { if(llGetOwnerKey(id) == llGetOwner()) // Notice "if(llGetOwnerKey(id) == llGetOwner())" was added? // This will check if the object or person talking to it is owned // by this scripts owner. All Agents own themselves! This is to // filter out the listener. Everthing else is ignored! { if (message == "start") { llOwnerSay("Starting..."); } } } }


