Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Good way to reset buttons on a HUD?

Senuka Harbinger
A-Life, one bit at a time
Join date: 24 Oct 2005
Posts: 491
11-28-2005 21:54
I'm using a series of buttons on my HUD to have it select a weapons payload to be used when firing and I'm not sure of a good way to "reset" the info that's sent to the rest of the combat system. right now I'm resending that info when the HUD is turned "on" but if you unequip the HUD with it turned on and then re-equip the HUD, it's still "on" but the weapons payload isn't resent. should I have an additional "resend" command call by llOnRez (dunno if that works for attaching something), or is there a way that I can get around it with a single "resend" command, as I'm using llMessageLinked for these info packets and want to cut down on the amount of times the various child prims will have to filter out things sent through the message linked command.
Rodrick Harrington
Registered User
Join date: 9 Jul 2005
Posts: 150
11-29-2005 01:23
From: someone
llOnRez (dunno if that works for attaching something


It does :D
Luc Aubret
Oreo-eater
Join date: 14 Sep 2005
Posts: 86
11-30-2005 20:29
Uh... I'm unfamiliar with the llOnRez function. In fact, I'm pretty sure you made it up just then, LOL.

I think what you're looking for is the on_rez event handler, right?

If so - and I'm probably mistaken here (I often am), isn't the on_rez function triggered by teleports and logins? I know I've seen particle poofs go off in these situations, and I was under the impression they used this event to trigger. If I'm right - and again, there's a good possibility I'm not, as I don't use that event as often as I probably should - you'd probably be better off using the attach event if you don't want your HUD resetting under all of these circumstances.

While I'm on the subject of particle poofs, I'd like to give a shout-out encouraging people to consider using alphas/lowering particle age/tamping down push on their poofs. I rarely find anything more annoying than suddenly having my screen obscured with floating kittens or hearts or something - which are often almost full alpha and last FOREVER - announcing my misfortune at having an av with a poof appear right next to me.