|
Sollie Villota
Registered User
Join date: 22 Jun 2007
Posts: 46
|
08-30-2007 00:29
Hello again. I am trying to figure out how to make my HUD send a tell and so it'll listen to itself when someone else is wearing another one. Example. Combat system. I want my HUD to tell llSay over a certain channel, but I need it so the other HUD will only listen to the one that's saying it, and not others.
The HUD already detects the owner and who killed you. How do I get it so the HUD thats DYING sends a message to the one that killed the dying one, and so that no crosstalking happens? I have some ideas, but I just want to see other people's thoughts on this.
|
|
Jotheph Nemeth
Registered User
Join date: 9 Aug 2007
Posts: 142
|
08-30-2007 01:33
From: Sollie Villota Hello again. I am trying to figure out how to make my HUD send a tell and so it'll listen to itself when someone else is wearing another one. Example. Combat system. I want my HUD to tell llSay over a certain channel, but I need it so the other HUD will only listen to the one that's saying it, and not others.
The HUD already detects the owner and who killed you. How do I get it so the HUD thats DYING sends a message to the one that killed the dying one, and so that no crosstalking happens? I have some ideas, but I just want to see other people's thoughts on this. I usually pass the owner key or make it part of the listen call. If nothing else works, if you know the target key or name, embed that into the llSay and have the other hud doing the listen check that it's owner is the target in the msg. You could use llInstantMessage but there's a penalty of 2 seconds, and you'd have to know the object id of the other hud. I haven't tried this so I'm not even positive if you can im another object.
|
|
Tiarnalalon Sismondi
Registered User
Join date: 1 Jun 2006
Posts: 402
|
08-30-2007 04:51
As far as I'm aware you cannot IM another object, only e-mail.
Since the HUD is going to know who hit them last and killed them, due to the llGetOwnerKey(id), you could simply have the HUD listen on a specific channel for death messages, and when it hears it's owner's key, it records the death.
This would also make it handy if you made some sort of contest board for the system as it could listen to these messages and with something like that, it would know who killed who automatically.
|
|
Sollie Villota
Registered User
Join date: 22 Jun 2007
Posts: 46
|
08-30-2007 05:59
Ahhh thank you much. I will attempt these methods today. I appreciate it.
EDIT: Yes, it works perfectly, thank you very much.
|