Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Precision vehicle unseating

Sapphire Bombay
Avatar
Join date: 8 Oct 2003
Posts: 341
10-23-2005 14:12
I have a project involving a vehicle. I need to unseat either/both of 2 occupants and place them consistently and precisely in an exact offset to the vehicle. Right now I phantom the vehicle and give a push, pause, then unphantom the vehicle with varying results. Anyone have a better way of making this consistent?
_____________________
Avatar: A temporary manifestation or aspect of a continuing entity.
Cid Jacobs
Theoretical Meteorologist
Join date: 18 Jul 2004
Posts: 4,304
10-23-2005 14:57
Well, I think push and phantom are both a good start. I would add a sensor as well, and check the position the person that was just unseated. Then you could use llPushObject based on their mass to move them closer to your offset vector. Once the sensor sees that they are close to your offset, remove the sensor. I imagine it could be done pretty quickly and wouldn't be too noticable. Hope that helps.
~Cid
_____________________
Ashling Babka
Registered User
Join date: 18 Sep 2005
Posts: 23
10-23-2005 15:30
Perhaps move the prim they are sitting on to the new location,
and then delete that prim? .... recreate seat prim if needed.
Seagel Neville
Far East User
Join date: 2 Jan 2005
Posts: 1,476
10-24-2005 01:44
Once upon a time, Strife told me to bake some movement into the animation so when they used sits they really were in the exact offset to the vehicle, not actualy on the seat. ;)
_____________________
:) Seagel Neville :)
Sapphire Bombay
Avatar
Join date: 8 Oct 2003
Posts: 341
10-24-2005 03:32
All good suggestions. It always amazes me how many different ways there are to accomplish something in SL. Thanks.
_____________________
Avatar: A temporary manifestation or aspect of a continuing entity.
Alain Talamasca
Levelheaded Nutcase
Join date: 21 Sep 2005
Posts: 393
10-24-2005 06:28
If you want real precision with respect to placement and rotation (I assume this would be in relation to the vehicle), I would use a sit-hack teleport in the part of the script that unseats the driver/passenger.

The Sit-hack is a very established script and I have used it a lot for similar effects. Just drop it in where the unseat happens.

There is some talk of LL fixing the bug that allows sit-hack. If this ever happens, of course, the script would borked, but there are other ways to position avatars. I just hope that LL realizes how many scripts and processes use the current setup, and that very few things would be gained by not allowing sit-hack to continue.
_____________________
Alain Talamasca,
Ophidian Artisans - Fine Art for your Person, Home, and Business.
Pando (105, 79, 99)