|
Cooper Conover
Registered User
Join date: 28 Jun 2006
Posts: 10
|
12-01-2006 08:52
I am trying to create a HUD that when clicked on, will create an "extension" to itself that can display extra informtaion. I assume I need to rez the extension and then attach it to the avatar, but I'm not sure how the code would go to do this. Does anyone have any code snippets they would mind sharing or any suggestions as to how this would be done?
Thanks you in advance for any help you may be able to give.
|
|
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
|
12-01-2006 09:39
Why rez it?
Have the extra off screen, and move the screen into view when required. Much neater than rezzing. No spamming blue boxes, etc.
llSetPos and llGetLocalPos are your friends for this.
|
|
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
|
12-01-2006 12:26
Eloise has the right of it..
..otherwise, you cannot create links to attachments, and you cannot attach something else from inventory to an avatar via script. You can make a scripted object that is rezzed attach itself to an avatar, but if it is already rezzed, you would be better off using Eloise's suggestion.
|