Sit Script that works with short and tall avatars?

Creating scripts
User avatar
Lunk Portal
Posts: 133
Joined: Wed Jan 26, 2022 10:03 am
Location: Northern Michigan
Has thanked: 92 times
Been thanked: 141 times
Contact:

Sit Script that works with short and tall avatars?

Post by Lunk Portal »

Hey everyone, I am having a pain...

I have short characters and tall characters, I need a sit script that works for both.

Either the tall have their backs too far past the back rest, or the short are sitting in mid-air in front of the seat.

Does anyone have a decent sit that works for both?

THANKS!
These users thanked the author Lunk Portal for the post:
Ilan Tochner
B. A. Shields (Lunk Portal)
TatooineRP Region
TatooineRP Website
Kitely Market - Lunk's Loot
My Novels and other Projects
https://linktr.ee/bashields
User avatar
Lunk Portal
Posts: 133
Joined: Wed Jan 26, 2022 10:03 am
Location: Northern Michigan
Has thanked: 92 times
Been thanked: 141 times
Contact:

Re: Sit Script that works with short and tall avatars?

Post by Lunk Portal »

still nothing?

It's a little frustrating because I have short and tall avatars, but they cannot sit in the same chair because the poseball can only be set for one height of avatar...

Is there a way to do something like;

if avatar < 5feet then position x2
otherwise position x1

Any suggestions?
B. A. Shields (Lunk Portal)
TatooineRP Region
TatooineRP Website
Kitely Market - Lunk's Loot
My Novels and other Projects
https://linktr.ee/bashields
Graham Mills
Posts: 1314
Joined: Sun Dec 23, 2012 2:26 pm
Has thanked: 1134 times
Been thanked: 1141 times

Re: Sit Script that works with short and tall avatars?

Post by Graham Mills »

These users thanked the author Graham Mills for the post:
Lunk Portal
User avatar
Scurvy Ragu 2
Posts: 59
Joined: Wed Nov 14, 2018 9:02 pm
Has thanked: 0
Been thanked: 34 times

Re: Sit Script that works with short and tall avatars?

Post by Scurvy Ragu 2 »

Who knows what Missing collision sound: ffffffff-ffff-ffff-ffff-ffffffffffff is? When im getting an error trying to make a product in the market?
Graham Mills
Posts: 1314
Joined: Sun Dec 23, 2012 2:26 pm
Has thanked: 1134 times
Been thanked: 1141 times

Re: Sit Script that works with short and tall avatars?

Post by Graham Mills »

I really don't know much about sits but a quick look suggests that you can't set the sit target once you have a sitting avatar so you have to adopt a two-touch approach, first touch to set the target depending on avatar height, second to actually sit.

The second example on this page might work. I changed 0.65 to 0.15. https://wiki.secondlife.com/wiki/LlSitTarget
Graham Mills wrote:
Wed May 11, 2022 4:33 pm
Probably. See https://wiki.secondlife.com/wiki/LlGetAgentSize
These users thanked the author Graham Mills for the post:
Lunk Portal
User avatar
Scurvy Ragu 2
Posts: 59
Joined: Wed Nov 14, 2018 9:02 pm
Has thanked: 0
Been thanked: 34 times

Re: Sit Script that works with short and tall avatars?

Post by Scurvy Ragu 2 »

whats collision sound: ffffffff-ffff-ffff-ffff-ffffffffffff
Graham Mills
Posts: 1314
Joined: Sun Dec 23, 2012 2:26 pm
Has thanked: 1134 times
Been thanked: 1141 times

Re: Sit Script that works with short and tall avatars?

Post by Graham Mills »

Scurvy Ragu 2 wrote:
Wed May 11, 2022 6:30 pm
whats collision sound: ffffffff-ffff-ffff-ffff-ffffffffffff
It's the sound you hear when you accidentally sit on a tiny. :lol:
User avatar
Lunk Portal
Posts: 133
Joined: Wed Jan 26, 2022 10:03 am
Location: Northern Michigan
Has thanked: 92 times
Been thanked: 141 times
Contact:

Re: Sit Script that works with short and tall avatars?

Post by Lunk Portal »

Graham Mills wrote:
Wed May 11, 2022 7:35 pm
Scurvy Ragu 2 wrote:
Wed May 11, 2022 6:30 pm
whats collision sound: ffffffff-ffff-ffff-ffff-ffffffffffff
It's the sound you hear when you accidentally sit on a tiny. :lol:
LOL... that's a Jawa letting his air out.

What's probably happening is you are uploading something with a script referencing a collision sound UUID that is not present in your build. Either change the script reference or add the audio it is referencing.
B. A. Shields (Lunk Portal)
TatooineRP Region
TatooineRP Website
Kitely Market - Lunk's Loot
My Novels and other Projects
https://linktr.ee/bashields
User avatar
Lunk Portal
Posts: 133
Joined: Wed Jan 26, 2022 10:03 am
Location: Northern Michigan
Has thanked: 92 times
Been thanked: 141 times
Contact:

Re: Sit Script that works with short and tall avatars?

Post by Lunk Portal »

It's the AO not allowing the proper sit position, ha ha... you would think after all these years doing this I would remember that. I need a snippet of code to override the override people wear LOL
B. A. Shields (Lunk Portal)
TatooineRP Region
TatooineRP Website
Kitely Market - Lunk's Loot
My Novels and other Projects
https://linktr.ee/bashields
Graham Mills
Posts: 1314
Joined: Sun Dec 23, 2012 2:26 pm
Has thanked: 1134 times
Been thanked: 1141 times

Re: Sit Script that works with short and tall avatars?

Post by Graham Mills »

I may be mistaken but I suspect the onus is on the avatar to turn their AO off under such circumstances. I doubt there's a generally applicable solution of the kind you seek.
These users thanked the author Graham Mills for the post:
Lunk Portal
Post Reply