|
Gregerson Halderman
Registered User
Join date: 9 Aug 2007
Posts: 15
|
08-12-2007 13:26
I'm trying to override the sit animations for two linked prims. Basically one prim, when sat upon, overrides with a walking animation (I've done this). The other prim (linked to the first) will be used to set another animation for the avatar sitting on it.
My problem is this: the changed(..) event handler recognises only the first person to sit down. Any subsequent person is not handled. IS this because I've linked the prims? I've tried using a separate script for the second prim but its event handler is also ignored (although touching it can be handled).
I need to change the animation for the second avatar sitting on the 2nd prim.
Any help much appreciated.
|
|
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
|
08-12-2007 13:47
You'll need a script in the second prim. It'll need its own sit target. Both scripts will have to check and track who is on thier sit target to avoid problems as all prims in the link set will get the changed() event when someone sits on any prim in the set. The script I use for most situation like that is attached.
|
|
Gregerson Halderman
Registered User
Join date: 9 Aug 2007
Posts: 15
|
08-12-2007 14:08
Thanks for the script. The problem is that the prim doesn't handle anything. Neither on_rez, or changed are handled. I can't even put text above the prim. It's as though the script is being ignored for that prim.
|
|
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
|
08-12-2007 14:29
From: Gregerson Halderman Thanks for the script. The problem is that the prim doesn't handle anything. Neither on_rez, or changed are handled. I can't even put text above the prim. It's as though the script is being ignored for that prim. Oohhhh. You may have a corrupted prim. Make a new one 
|
|
Gregerson Halderman
Registered User
Join date: 9 Aug 2007
Posts: 15
|
08-12-2007 17:45
Yes...it was a corrupted prim 
|