Rico Plisskin
Registered User
Join date: 17 Feb 2005
Posts: 104
|
04-23-2005 13:30
I have made leg chain shackles for myself and it works just fine...until i take them off and put them back on. THEN when i look at the Key Number for the particle receiving object...the Key Number changes and i have to change the key number everytime in the particle script. Is there a reason its doin that?
|
Catherine Omega
Geometry Ninja
Join date: 10 Jan 2003
Posts: 2,053
|
04-23-2005 14:16
Yes, the key will change when you take it off, because it's not the same object. It's a copy of the same object with the same memory state, but it's an entirely new one with a new key. It's kind of annoying, but I'm told it's a side effect of the way sims are designed.
Your best bet for a workaround is to have your emitter script listen on some channel for the key... then the target prim have a script in it with "llWhisper(your_channel_here,llGetKey())" in state_entry. Put llResetScript() in both attach() and on_rez() in both the emitter and target scripts. You can use llListenRemove to get rid of the listen after you've gotten the key from the emitter.
|