Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Mulitple Avatars in Vehicles....

Blaccard Burks
Registered User
Join date: 6 Apr 2007
Posts: 157
07-17-2007 09:39
Hello,

Most of the typical routines for sitting an avatar in a vehicle using the changed( integer change) event followed with if( change & CHANGED_LINK) query work fine..

What I have noticed that if I have some seats for passengers that have their own sit scripts with animations for example....

If they sit on them first, then I sit, I'm not recognized as the owner. If I sit and unsit myself it works.

The typical "you are not the owner" routine works fine. I don't think its nice to push avatars into the statosphere if they try and drive your vehicle, so I don't include any llPushObject code in there..... however sometimes if I "STANDUp" WITH passengers still seated all avatars will get blown into the stratosphere!

Are these just bugs or has anyone else scripting vehicles had these issues?
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
07-17-2007 12:41
Well, the "blown to the stratosphere" issue is an old one, which is caused by the physics solver barfing due to strange avatar/vehicle object interpenetration solutions which cause the avatar to be lauched out of the vehicle. That problem occurs with most vehicles, but is worst with ones that you sit inside of. The way around it is to use sit prims that are actually outside the vehicle and use an animation to put them in the correct position in the seat. That way, when they unsit, they unsit without penetrating the vehicle and just gently appear outside next to it, maybe with a small bump or push.

The rest of it, it sounds like you may have some bugs between the various sit scripts in your vehicle. Would need more info about exactly how you are doing it to be able to diagnose it better.