Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

disable all animations on sit

Caesar Hawks
Registered User
Join date: 21 Jun 2007
Posts: 6
10-07-2007 15:37
Hi all,

I have to sit on my object in order to grant it the camera control permissions on my avatar, but the sitting action has to be as transparent as possible: I don't want my avatar to change its position at all when it sits on my object; in other words, when I select 'sit' from the pie menu on my object, the avatar must not change position, he must remain in stand position like nothing had changed.

How can I accomplish this?

thank you all!

Caesar
Lear Cale
wordy bugger
Join date: 22 Aug 2007
Posts: 3,569
10-07-2007 17:30
You can find all the animations the av is running before they sit, say, if they touch first, and then after they sit you could turn off any anims that are new and turn on the ones that were on before. At least, I think you can -- I believe that if you get the key for an anim you can start it regardless of permissions issues.

Unfortunately, it turns it into a 2-click operation, first to touch and second to sit.

Perhaps someone has a clever idea to avoid this disadvantage, but I can't think of one.
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
10-07-2007 17:52
You can see how to do it in my AO Overiding Pose Ball:

/15/d3/142207/1.html
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Lear Cale
wordy bugger
Join date: 22 Aug 2007
Posts: 3,569
10-08-2007 09:03
Unfortunately, Jessee, that won't show what anim was in place before they sat. But it does show the necessary LSL calls, which is helpful (llGetAnimationList() and llStopAnimation().)

Caesar, note that you pass a single anim to llStopAnimation() at a time; don't stringify the list returned by llGetAnimationList() like Jessee's script does.