Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Not sitting while sitting

Caoimhe Armitage
Script Witch
Join date: 7 Sep 2004
Posts: 117
04-04-2005 09:35
I give up. how can I manage to *not* have an AV assume the sitting position (and in fact remain playing whatever anim they currently have running) when they sit on my sit target?

Inquiring minds want to know :)

- C
Talila Liu
Micro Builder
Join date: 29 Jan 2004
Posts: 132
04-04-2005 09:47
you Would use this command...
CODE
llStopAnimation("sit");


Not exactly if you would have to get permissions or not, and If you could better specify which current animation you would like to be kept playing, it would be helpful.
CrystalShard Foo
1+1=10
Join date: 6 Feb 2004
Posts: 682
04-04-2005 09:55
Talila got it right. =)

Just llRequestPermissions(PERMISSION_TRIGGER_ANIMATION) when an avatar sits, and then stop the sit animation on the run_time_permissions() event.
Caoimhe Armitage
Script Witch
Join date: 7 Sep 2004
Posts: 117
04-04-2005 10:27
tried llStopAnimation("sit";). the T-shirt didn't work. really.

any known problems/intereferences then?

- C
Ushuaia Tokugawa
Nobody of Consequence
Join date: 22 Mar 2005
Posts: 268
04-04-2005 10:48
CODE

default {
state_entry() {
llSitTarget(<0.0, 0.0, 0.1>, ZERO_ROTATION);
}

changed(integer change) {
if (change & CHANGED_LINK) {
key avatar = llAvatarOnSitTarget();

if (avatar != NULL_KEY) {
llRequestPermissions(avatar, PERMISSION_TRIGGER_ANIMATION);
}
}
}

run_time_permissions(integer permission) {
if (permission & PERMISSION_TRIGGER_ANIMATION) {
llStopAnimation("sit");
}
}
}
Talila Liu
Micro Builder
Join date: 29 Jan 2004
Posts: 132
04-04-2005 10:52
Note: When you stop the animation, ever since 1.5 I think, you are doing No Animation, but you will still look like you were doing the last animation(I.E. Sitting). So you would have to call

CODE
llStartAnimation("stand");
Caoimhe Armitage
Script Witch
Join date: 7 Sep 2004
Posts: 117
04-04-2005 12:48
That's the missing piece! Thanks.