|
Marita Mumfuzz
Registered User
Join date: 9 Mar 2008
Posts: 6
|
03-28-2008 16:44
What I'm trying to do is create a basic HUD that would allow the landowner to 'Target' an Avatar by clicking on it and then from the HUD send a message asking the user to please leave and if they don not then eject them and add them to the ban list.
I can do everything except the 'targeting' of the Avatar to get its name.
Like to keep the typing involved to an absolute minimum.
Is this possible ?
Thanks in advance.
|
|
FireEyes Fauna
Registered User
Join date: 26 Apr 2004
Posts: 138
|
03-28-2008 16:51
You could either run a llSensor to get a list of agents around you and present this list as a dialog where you can choose a name.
Or fire a small projectile at someone so that when it hits then it generates a collision_start() event which you could communicate the name back to your HUD.
There may be other solutions but these are the 2 I can think of right now.
|
|
Solomon Devoix
Used Register
Join date: 22 Aug 2006
Posts: 496
|
03-28-2008 17:32
Yup. I made a minigun that fires "eject" bullets. Can be quite amusing.
_____________________
From: Jake Black I dont know what the actual answer is.. I just know LLs response was at best...flaccid. From: Solomon Devoix That's a very good way to put it, and now I know why we still haven't seen the promised blog entry...
...the Lindens are still waiting for their shipment of Lie-agra to come in to firm up their flaccid reasoning.
|
|
Marita Mumfuzz
Registered User
Join date: 9 Mar 2008
Posts: 6
|
Thanks for the quick replies.
03-28-2008 17:44
Thanks for the quick replies.
I think I'll go the llSensor route.
The gun way sounds like it would be more 'appropriate' but I don't know how well the user is at aiming so she may get the wrong 'Target'.
|
|
Anya Ristow
Vengeance Studio
Join date: 21 Sep 2006
Posts: 1,243
|
03-28-2008 18:02
From: Marita Mumfuzz The gun way sounds like it would be more 'appropriate' but I don't know how well the user is at aiming so she may get the wrong 'Target'. The bullet wouldn't actually do the ejecting. It'd just trigger the identity of the avatar you wanted to eject. You'd then pop a confirmation dialog. A gun would definitely be more fun, and you wouldn't have the trouble of fitting names on the little buttons.
|
|
Solomon Devoix
Used Register
Join date: 22 Aug 2006
Posts: 496
|
03-28-2008 22:44
Well, actually, the way I set mine up, it does rather depend on the aim of the person firing the gun...
On impact, the bullet sends a message with the UUID of the avatar it hit, and an object elsewhere on the land hears the message and boots the avatar using their UUID key. No pop-up confirmation involved.
That can be good or bad, depending on how you look at things...
_____________________
From: Jake Black I dont know what the actual answer is.. I just know LLs response was at best...flaccid. From: Solomon Devoix That's a very good way to put it, and now I know why we still haven't seen the promised blog entry...
...the Lindens are still waiting for their shipment of Lie-agra to come in to firm up their flaccid reasoning.
|
|
Solomon Devoix
Used Register
Join date: 22 Aug 2006
Posts: 496
|
03-28-2008 22:48
Oh, and I also have a HUD version with 4 buttons: Unsit, TP Home, Eject, Eject & Ban
Click a button, get a drop-down menu of the 12 closest avatars; click a button on the drop-down menu, and the action specified by the HUD button click is carried out on the target you selected.
As with the gun, the HUD just sends a message to an object elsewhere that does the "dirty work". The land is group-owned, and I set this system up so the employees of the business on the land can have those kinds of abilities. (This way, those abilities can be given to certain trusted employees instead of to everyone that has a certain role in a group.) It also lets me give "downpowered" versions of the HUD to those that may not need all the abilities. (i.e. managers get the 4-function HUD, regular employees get 3 functions -- everything except the ban option).
_____________________
From: Jake Black I dont know what the actual answer is.. I just know LLs response was at best...flaccid. From: Solomon Devoix That's a very good way to put it, and now I know why we still haven't seen the promised blog entry...
...the Lindens are still waiting for their shipment of Lie-agra to come in to firm up their flaccid reasoning.
|
|
Marita Mumfuzz
Registered User
Join date: 9 Mar 2008
Posts: 6
|
Thanks to all
03-30-2008 15:02
Thanks to all who replied ... I have it working.
|