|
Sleven Hathaway
Registered User
Join date: 13 Feb 2007
Posts: 21
|
03-02-2008 14:11
I am currently working on a "teach me how to script" project. I decided to go all out and make a anti-griefer style of hud. One thing that I am having lots of trouble finding is how to make a dialog menu that displays all avatars within range. I know it is possible to make one generate buttons for each avatar within 96 meters. But I can not for the life of me find a place that tells me how its done. Once I find out how to make it work within 96 meters I would like to find a way to make it sim wide. Incase I was not clear enough on what I want the menu to do I will give some examples of HUDs that I know create these types of menues. Exousia Gkill Omicron Thanks in advance for any help  ~Slev
|
|
Daten Thielt
Registered User
Join date: 1 Dec 2006
Posts: 104
|
03-02-2008 14:29
it wont be easy. one sensor can only pickup 16 targets. u jsut do the sensor even to store names in a list then use the list in the dialog, for sim wide you will need to check names comming in so you dont get duplicate names. then after that you need to devise a system to make sure u dont add more than 12? buttons to the dialog
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
03-02-2008 16:09
sim wide is going to be difficult, as you already realized there's the 96m bubble of detection, which means rezzing helpers which may may work on certain parcels or in certain sims...
the dialog part is easy, just feed the detected av's from the sensor into a list, and use the list to make your dialog buttons (make sure they are less than 25 characters). using multiple prims facing in different directions you can narrow the cone of detection, and get more detectable av's, but be aware that anything less than a half sphere of detection will need overlaps to get 100% of the 96m sphere...
one other thing is that llSensor will limit itself to the sim you're on, while sensor repeat will occasionally pick up avs across a sim border, and those near the border even if they aren't in range.
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|