|
Kidrock Lowey
Registered User
Join date: 22 May 2007
Posts: 5
|
10-28-2007 03:28
Hi, Can anyone help me with a "no sit" script? All I want to do is make it so an avatar cannot sit on the outside of a cube shaped object, but stays inside it. Thanks 
|
|
Ace Cassidy
Resident Bohemian
Join date: 5 Apr 2004
Posts: 1,228
|
10-28-2007 06:25
From: Kidrock Lowey Hi, Can anyone help me with a "no sit" script? All I want to do is make it so an avatar cannot sit on the outside of a cube shaped object, but stays inside it. Thanks  I'm assuming that the prim is a hollow cube. You can't prevent someone from sitting, but you can set the sit target within the prim, and then immediately unsit the AV if/when they do sit on the prim. Try this... default { state_entry() { llSitTarget(<0.0, 0.0, 0.01>, ZERO_ROTATION); } changed(integer change) { if ( change == CHANGED_LINK ) { key id; if ( (id = llAvatarOnSitTarget()) != NULL_KEY ) { llUnSit(id); } } } }
_____________________
"Free your mind, and your ass will follow" - George Clinton
|
|
Kidrock Lowey
Registered User
Join date: 22 May 2007
Posts: 5
|
10-28-2007 08:58
Thanks Ace, I tried the script but it just pops me back out the top again. I tried with a hollow prim with a top and a bottom, then I tried with 2 hollow prims turned to form a cube....same result, straight out the top. I know there must be a way, but since I'm such a novice at scripting I cant work it out....... Thanx 
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
10-29-2007 04:17
you want them to only sit on the inside? just move the sit target to the inside... and if you detect another sit, unsit that person... if you want more than one person to sit inside there's a hack to move avatars to specific positions on sitting... you have to search I can't remember the name of it
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
Bloodsong Termagant
Manic Artist
Join date: 22 Jan 2007
Posts: 615
|
10-29-2007 08:47
er...
would that be the link positioning thing used on sitting avatars that ll 'fixed' out of existance last week and broke tons of very lovely and functional scripts (like en garde. i didnt even get to play it yet! :( ) ???
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
10-29-2007 11:14
From: Bloodsong Termagant er... would that be the link positioning thing used on sitting avatars that ll 'fixed' out of existance last week and broke tons of very lovely and functional scripts (like en garde. i didnt even get to play it yet!  ) ??? doh, I thought they had 'un-fixed' it already.... disreagard that part EDIT: Double Doh, according to  this works again
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|