Hud object to worn object communication
|
|
Kai Venkman
Will script for food...
Join date: 21 Feb 2006
Posts: 43
|
04-22-2006 09:40
I have a simple Hud object that I would like to message another object that is worn on an Avatar. When I use llSay(1, message); the worn object doesn't seem to hear it.
The worn object is listening on channel 1 and I know the hud is executing the llSay.
What am I doing wrong?
|
|
Lallander Parvenu
Registered User
Join date: 21 Apr 2005
Posts: 45
|
04-22-2006 09:50
Is the worn object listening only for owner?
|
|
Sator Canetti
Frustrated Catgirl
Join date: 20 Sep 2005
Posts: 130
|
04-22-2006 09:51
Is it possible the listening device is set to listen only to the owner [listen(1, "", llGetOwner(), ""  ]?
_____________________
"Have gone to commit suicide. Intend to return from grave Friday. Feed cat." -- A memo by Spider Jerusalem in Transmetropolitan "Some people are like Slinkies; not really good for anything, but they still bring a smile to your face when you push them down a flight of stairs." If you're reading this signature, I've probably just disagreed with you. Welcome to the club 
|
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
04-22-2006 09:52
could you post example scripts? there isn't anything wrong with what you have described so far.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly
Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey
|
|
Kai Venkman
Will script for food...
Join date: 21 Feb 2006
Posts: 43
|
04-22-2006 10:05
Ack! The scripts are listening for owner only. Shoot.
Thank you for the replies. I can't believe I was so stupid.
Now the question I have is how does the Huddles Chat HUD thing work then? It can record and play back commands on any channel and send them as Owner because I can use it to work with the embedded scripts.
|
|
Keiki Lemieux
I make HUDDLES
Join date: 8 Jul 2005
Posts: 1,490
|
04-22-2006 12:05
From: Kai Venkman Ack! The scripts are listening for owner only. Shoot.
Thank you for the replies. I can't believe I was so stupid.
Now the question I have is how does the Huddles Chat HUD thing work then? It can record and play back commands on any channel and send them as Owner because I can use it to work with the embedded scripts. Well you could ask the creator  The HUDDLES Chat Macro uses llDialog to "play macros". When you click on a button from a dialog, your avatar/agent actually says chat rather than an object/script saying the chat. If anyone wants a free Chat Macro, stop by my shop in No.
_____________________
imakehuddles.com/wordpress/
|
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
04-22-2006 14:16
llDialog is limited in the length of chat it can say (i believe 24 characters).
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly
Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey
|
|
Keiki Lemieux
I make HUDDLES
Join date: 8 Jul 2005
Posts: 1,490
|
04-22-2006 14:39
From: Strife Onizuka llDialog is limited in the length of chat it can say (i believe 24 characters). Yep, it sure would be useful to have a llAgentSay function.
_____________________
imakehuddles.com/wordpress/
|
|
jrrdraco Oe
Insanity Fair
Join date: 28 Oct 2005
Posts: 372
|
04-23-2006 21:11
From: Lallander Parvenu Is the worn object listening only for owner? Now, let me ask one thing, if you change the listener from llGetOwner() to NULL_KEY, won't it listen to nearby huds too? I dont want to get remote controlled by other ppl, changing channels for each copy of the hud doesnt seem reasonable neither the KEY ID
|
|
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
|
04-23-2006 21:39
From: jrrdraco Oe Now, let me ask one thing, if you change the listener from llGetOwner() to NULL_KEY, won't it listen to nearby huds too? I dont want to get remote controlled by other ppl, changing channels for each copy of the hud doesnt seem reasonable neither the KEY ID Check to see if the "speaker" is owned by the same owner to prevet remote control. llListen(integer chan, string name, key id, string msg) { if ( llGetOwnerKey(id) == llGetOwner() ) { //Do something } }
|
|
jrrdraco Oe
Insanity Fair
Join date: 28 Oct 2005
Posts: 372
|
04-24-2006 09:28
Ah, way to go, I was thinking a lot of complicated ways to workaround that, life got a lot easier with that tip, thanks
|