Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Automagic HUD attachment?

Alexander Yeats
Registered User
Join date: 8 Sep 2005
Posts: 188
09-29-2005 17:52
Is it my clustered brain, or, is there no way to auto-attach HUD's to AVs?

I assumed, like for regular attachments, I would have an LSL command and that would prompt a "permissions" dialog, but I see no such thing?

Could just be blind though....
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
09-29-2005 17:55
Its possible to rez the hud, have it request PERMISSION_ATTACH and then call llAttachToAvatar.
==Chris
Alexander Yeats
Registered User
Join date: 8 Sep 2005
Posts: 188
09-29-2005 18:00
From: Christopher Omega
Its possible to rez the hud, have it request PERMISSION_ATTACH and then call llAttachToAvatar.
==Chris



ok, figured out the constants from the wiki. Would be nice if they add those as named constants soon :)

NOW, is there anyway to move the hud around? Or is it a one time set deal from where I set it up?

cause I just tried an llsetpos() and got a crash two times in a row when it hit that setpos.

CONSISTANT CRASH:

default {
touch_start(integer num_detected) {
llRequestPermissions(llDetectedKey(0), PERMISSION_ATTACH);
}

run_time_permissions(integer perm) {
if (perm & PERMISSION_ATTACH) {
llAttachToAvatar(33);
llSetPos(<0.0,-0.5,-0.5>;);
}
}
}
Nathan Stewart
Registered User
Join date: 2 Feb 2005
Posts: 1,039
09-30-2005 05:33
This may be a crash bug in this build, i've reported a crash when rotating child prims using scripts, both on hud and attached to main body

Be very careful as if its left in a state that runs on login it can prevent you from loggin in, and you'll need to contact a linden to get your attachments removed, as i had to twice yesterday.
_____________________
Alexander Yeats
Registered User
Join date: 8 Sep 2005
Posts: 188
09-30-2005 11:23
Yeah I pushed them a bug report.

Good thing I didn't leave them in an attached running state, lol, that musta sucked.
Nathan Stewart
Registered User
Join date: 2 Feb 2005
Posts: 1,039
09-30-2005 11:33
Yea, it did hurt but they're used to me getting stuck like that, not to mention the other guy i got stuck and i had it happen with a previous time lol with another bug so i been stripped many times, im surprised i dont have my own special button anymore lolol

Normally attachments on the hud can be moved, slid in and out from the top/side etc
_____________________