Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Force user to sit

fr0b Assia
Registered User
Join date: 6 Jun 2005
Posts: 10
06-23-2005 22:12
I need to force a user to sit (with permission) on object named "MYCHAIR" when they trigger a script using collision_start.. I have everything working but the "sit on object" part.. can someone point me to in the right direction?

TIA.
Catherine Omega
Geometry Ninja
Join date: 10 Jan 2003
Posts: 2,053
06-23-2005 22:29
Unfortunately, there's no way to force an avatar to sit. To unsit, yes, but not to sit in the first place.
_____________________
Need scripting help? Visit the LSL Wiki!
Omega Point - Catherine Omega's Blog
fr0b Assia
Registered User
Join date: 6 Jun 2005
Posts: 10
06-23-2005 22:35
From: Catherine Omega
Unfortunately, there's no way to force an avatar to sit. To unsit, yes, but not to sit in the first place.


Ok.. then perhaps is there a way to place a an avatar facing a specific direction and move them to a specific location within a group of primes? what is going on is person enters a group of primes and sets off a trigger on the floor that assigns a pose to them.. but unless they are facing a specific direction and unless they are at a specific location it looks mighty strange. Any help with that?

I have looked but the only way I can figure out how to rotate a person is if they are sitting :(
Catherine Omega
Geometry Ninja
Join date: 10 Jan 2003
Posts: 2,053
06-23-2005 23:12
From: fr0b Assia
Ok.. then perhaps is there a way to place a an avatar facing a specific direction and move them to a specific location within a group of primes? what is going on is person enters a group of primes and sets off a trigger on the floor that assigns a pose to them.. but unless they are facing a specific direction and unless they are at a specific location it looks mighty strange. Any help with that?

I have looked but the only way I can figure out how to rotate a person is if they are sitting :(
Ugh, you've run into another problem: you can't do that either. There are a bunch of rotation functions, but none of them act on an avatar properly. They're all either disabled or bugged.

Basically, the only way you're going to get the avatar to turn is if they sit on the object of their own free will.
_____________________
Need scripting help? Visit the LSL Wiki!
Omega Point - Catherine Omega's Blog
Severe Whiplash
A.K.A Ywoski Khan
Join date: 3 Oct 2004
Posts: 381
06-24-2005 01:28
whats this force user to unsit? i'd be interested in knowing how to do that
_____________________
-----------------------------------------------------------------------


A.K.A Ywoski Khan - Founder and Sith Lord of the Shadow Syndicate
Sith Lord of Dark lords of the Sith (lvl 3)

Admiral in the New Imperial Navy
Clone Lieutenant in the Grand Army of the Republic


-----------------------------------------------------------------------
Seagel Neville
Far East User
Join date: 2 Jan 2005
Posts: 1,476
Plz ignore my part... :D
06-24-2005 01:29
CODE
default
{
collision_start(integer num_detected)
{
llSay(0, "Hey, " + llDetectedName(0) + ", you ought to sit down before your really hurt!");
llSleep(2);
llSay(0, "Huh? What are you looking for? It's me. Can't you see me, this excellent chair in front of you?");
llSleep(1);
llSay(0, "Hey, hey, hey, hurry up. I haven't got all day. Just sit, sit on me, you know");
llSleep(1);
llSay(0, "O, oh? You run? Hey, you can't run away from me");
llSay(0, "I got your name, so I'll keep sending spam IM to you until you come back and sit on me.");
llSleep(2);
llSay(0, "Yeah, come on, don't hesitate, yeah. good.);
}
}


Edit: Oops, after posting, I read this. We can't use llSleep for collision.... :p
_____________________
:) Seagel Neville :)
Severe Whiplash
A.K.A Ywoski Khan
Join date: 3 Oct 2004
Posts: 381
06-24-2005 01:37
lol
_____________________
-----------------------------------------------------------------------


A.K.A Ywoski Khan - Founder and Sith Lord of the Shadow Syndicate
Sith Lord of Dark lords of the Sith (lvl 3)

Admiral in the New Imperial Navy
Clone Lieutenant in the Grand Army of the Republic


-----------------------------------------------------------------------