Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llUnSit Quirks?

Bartiloux Desmoulins
Think Kink? Think Bart!
Join date: 27 Sep 2005
Posts: 121
04-06-2007 13:41
I have this bit of script in my object...

llStopAnimation("sit";);
animation="new walk";
llSleep(0.5);
llStartAnimation(animation);
incrimentToPos(EndPos, NumIncriments);
llStopAnimation("new walk";);
llSleep(0.5);
llUnSit(SitID);

The incrimentToPos simply sets a new position for the object that is being sat upon.

What's supposed to happen is, you click sit to sit on the object. It stops the default sit pose and begins a new walk animation. While the walking animation is "firing" the object is moved, simulating a walk, and then the animation is stopped, once the destination is reached. At that point I simply want to stop the new walk animation and get off the object.

All goes fine until it's time to get up. The llUnSit appears to not be working. I added the llSleep's into the script thinking I may have a timing issue jumping between animations, but the pauses make no difference.

Am I doing something blatantly wrong that I cannot see? Is there "something about llUnSit" that requires some special quirky work-around coding? Any help anyone could provide to help get me off the object would be greatly appreciated!

Bartiloux Desmoulins
Deanna Trollop
BZ Enterprises
Join date: 30 Jan 2006
Posts: 671
04-06-2007 15:02
Might seem obvious, but it's not clear from your code snippet: Is the return value of llAvatarOnSitTarget() assigned to SitID at some point? (presumably inside the changed() event handler)
Gearsawe Stonecutter
Over there
Join date: 14 Sep 2005
Posts: 614
04-06-2007 16:52
Also Quoted from the wiki...

"When dealing with group land, the object owner must be the group. It won't work if the object owner is a member or officer in the group; the object itself must be deeded."
BamBam Sachertorte
floral engineer
Join date: 12 Jul 2005
Posts: 228
04-07-2007 00:03
From: Gearsawe Stonecutter
Also Quoted from the wiki...

"When dealing with group land, the object owner must be the group. It won't work if the object owner is a member or officer in the group; the object itself must be deeded."
I think that only applies to scripts trying to unsit avatars sitting on some other object. A script can always unsit an avatar sitting on its own prim, regardless of land or object ownership.
Bartiloux Desmoulins
Think Kink? Think Bart!
Join date: 27 Sep 2005
Posts: 121
04-07-2007 08:04
Well, it looks like I had the quirk part right. Out of desparation I took the item back into inventory and set it back out again and guess what... it worked! Thanks for all who replied and I guess this is something else to put in our goodie-bag of tricks... "When all else fails, re-rez."