Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

couple of questions

norman Fredrickson
Registered User
Join date: 31 Jul 2006
Posts: 6
08-31-2006 00:43
Hi!
i'm new to SL and have some questions about what can be be done by LSL. okay here we go:

1) can i force different AVs at different places of a prim ? or do i have to use different prims and make each AV on its own prim

2) can i force a AV to stay on a prim for a given prim without standing up ?

some more background info...i wanna create a script for a entertainment ride and i don't want the AV to just stand up and walk away in the middle of the ride...

thx in advance
Adriana Caligari
Registered User
Join date: 21 Apr 2005
Posts: 458
08-31-2006 01:31
From: norman Fredrickson
Hi!
i'm new to SL and have some questions about what can be be done by LSL. okay here we go:

1) can i force different AVs at different places of a prim ? or do i have to use different prims and make each AV on its own prim

2) can i force a AV to stay on a prim for a given prim without standing up ?

some more background info...i wanna create a script for a entertainment ride and i don't want the AV to just stand up and walk away in the middle of the ride...

thx in advance


Short answer - NO

I made a boat ride some time ago that circled an island ( sort of a talking tourist attraction ) - it was quite common to see people stand up ( either on-purpose or via changing clothes ) and end up in the drink as the boat merrily continued on without them.

Forcing someone to stay seated is seen as a griefer risk - "Help I sat on this red stool - now I cant stand up " sorta thing.
_____________________
Maker of quality Gadgets
Caligari Designs Store
HtF Visconti
Registered User
Join date: 21 Jul 2006
Posts: 123
08-31-2006 01:35
If you want to create a ride you probably have to move the avatars and one of the best ways to do this is to have them sitting because they get linked when they sit. For each avatar you need a sit target - possibly a poseball. The advantage of this layout is that you define very exactly where they will end up sitting, which way they will face, etc.

You cannot, however, take away their control .... ok - you can, but let us not get into details here :) If you have them sitting, they will have a button "Stand Up" and they cann press this any time they want to.

Some collars do have a "stand" option that prevents the avatrs from moving *without* a "Stand Up" or "Release Keys" option but I'm kinda clueless how this is done. Maybe someone else can help you with the second part of your question in a more efficient way.
norman Fredrickson
Registered User
Join date: 31 Jul 2006
Posts: 6
08-31-2006 01:54
first of all ...thx to both of you for your quick and detailed answers.

@Adriana: do you know of any parks with rides like rollercoasters and so on ?

@HtF: so there is a way to prevent the avatar for some time ? i'm aware that avatars can't move while they're sitting...but is there a way to make them sit for a given amount of time ?
HtF Visconti
Registered User
Join date: 21 Jul 2006
Posts: 123
08-31-2006 02:14
Again - I am not sure. The ".stand" command on a collar (e.g. Amethyst) freezes you WITHOUT an option to Stand Up or Release Keys. I do not know how this is achieved but since you probably are not sitting you will probably not be moved when the vehicle moves - maybe with a physical vehicle - but this is pure guesswork.

I'd say that the best option is to to have them sit as this will link them and properly transport them. When sitting there is NO way I know to disable Stand Up.

Alternatively one could try sitting someone then after they have assumed their position unseat them but still play the animation on them. This IS possible. But because they are no longer linked I do not know if they would be transported. Maybe in a chair with a restraint bar (like on roller-coasters) which are physical the avi would be transported.

IF this is true then this would solve the problem because the avi COULDN't stand up because of there being no button. At the end of the ride the poseball that was initially used for sitting would have to cancel the animation and the avis would be able to walk normally again.

This I have tested and this I know works. I am, however, unsure about them being transported properly.
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
08-31-2006 08:54
Most of the .stand type things on collars use llMoveToTarget(llGetPos()).

There's no "release keys" but it does require the av be wearing the attachment.
_____________________
Eloise's MiniMall
Visit Eloise's Minimall
New, smaller footprint, same great materials.

Check out the new blog
Kayla Stonecutter
Scripting Oncalupen
Join date: 9 Sep 2005
Posts: 224
08-31-2006 23:44
From: norman Fredrickson
so there is a way to prevent the avatar for some time ? i'm aware that avatars can't move while they're sitting...but is there a way to make them sit for a given amount of time ?
You cannot force an avatar to sit, or to stay sitting, only thing related you can do is force them to stand with llUnSit().
From: HtF Visconti
Alternatively one could try sitting someone then after they have assumed their position unseat them but still play the animation on them. This IS possible. But because they are no longer linked I do not know if they would be transported. Maybe in a chair with a restraint bar (like on roller-coasters) which are physical the avi would be transported.
Problem there is that the vehicle and avatar would be contantly colliding against each other, which could very easly throw the avatar and/or vehicle halfway across the sim. :P
_____________________
HtF Visconti
Registered User
Join date: 21 Jul 2006
Posts: 123
09-01-2006 00:58
From: Kayla Stonecutter

Problem there is that the vehicle and avatar would be contantly colliding against each other, which could very easly throw the avatar and/or vehicle halfway across the sim. :P

Where in the specs does it say: "Smooth Ride"? ;)

Should I ever bother with vehicles I will keep this in mind.
norman Fredrickson
Registered User
Join date: 31 Jul 2006
Posts: 6
09-01-2006 01:22
*lol*

thx for all your input...i guess i'll stick with a simple "sit". if someone wants to stand up in the middle of the ride it's their own problem...not nice but better then forcing the system to resolve a lot of collisions which may also lead to other problems.