|
Simon Au
Registered User
Join date: 29 Apr 2006
Posts: 138
|
04-08-2007 10:48
I made a bus today and need help scripting it. I found a script of a freebie I had in my invent called 'Kart2' . I grouped all my bus together and made the drivers seat the parent prim, then added this script to it. It was fine, and the bus was driveable, but when you drove the bus, my avatar sits away from the actualy seat...in mid air http://img372.imageshack.us/img372/2211/seatqk6.jpgNo matter where I position the seat, I still float above it. So I ungrouped my entire bus and grouped it again. This time I made a tiny prim behind the seat, and attached the script to this tiny prim. So my character still sits in mid air like before, but cosmetically, it looks like he's sitting on the main seat. I thought I had it done by then. But when passengers came and sat on my passenger seats, they're teleported, and they're sitting in the bloomin' front window. Gould. http://img402.imageshack.us/img402/3188/seat2ld3.jpgI know nothing about scripting, and I knew i'd run into problems getting my bus to drive, and make the seats function. Can anyone offer help to make my Bus be driveable for one, and the rest of the seats be 'sitable' for passengers
|
|
Tiarnalalon Sismondi
Registered User
Join date: 1 Jun 2006
Posts: 402
|
04-08-2007 11:10
It sounds like you are just having problems with the Sit targets. I would look at adjusting the vectors for the llSitTarget in the kart script and make sure that all the seats in the bus have sit targets set as well.
Also, if your bus is approaching the 31 prim limit for physical objects (this includes all avatars sitting on the bus as well) then you might look into adjusting the scripts so that no one other than the driver can sit on the bus until the bus is started since the physics engine doesn't care how many sit on it after physics are enabled, only before it turns them on.
|
|
Simon Au
Registered User
Join date: 29 Apr 2006
Posts: 138
|
04-08-2007 11:51
I wouldn't know the first thing about editing a script
|
|
Tiarnalalon Sismondi
Registered User
Join date: 1 Jun 2006
Posts: 402
|
04-08-2007 11:58
Well the sit target is basically telling the script where in relation to the center of the prim the script is in that you want an avatar to sit at. The line is just llSitTarget(<x,y,z>,<0,0,0,1>  the <0,0,0,1> is the rotation of the avatar, but you typically don't want to mess with that too much as it gets really confusing really fast. You just need to play with the #'s in the <x,y,z> part to sit them in the right spot. Each seat in the bus will need its own sit target put in it. There's a freebie sit target calculation item in world, and a post with the scripts in the library here that might help you.
|