|
Jaser Newell
Registered User
Join date: 12 Sep 2006
Posts: 23
|
02-06-2007 21:44
I'm creating a magic hud, I've made it work through two attachments, one on the hud another on the body. I used on_rez events in the code to make sure it get the new key for the new owner. It works perfectly for the the attachment on the hud, or rather a the one button I have on the hud atm, but it does not seem to call the on_rez event for the object attached to the body of the avatar. According to the wiki, on_rez should work when you attach an object from the inventory, but this does not seem to be the case. I've tried using attach instead of rez, but that doesn't seem to work either. Is there something I can do to solve this?
|
|
Jaser Newell
Registered User
Join date: 12 Sep 2006
Posts: 23
|
02-06-2007 23:46
Never mind, I found out why it was doing that. The state_entry in that state sent the script to another state. So when another person used the hud, so the script was in the wrong state to activate the on_rez. Bad scripting on my part.
|