Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Wheelchair Script Needed

Saranya Maltese
Registered User
Join date: 12 Jul 2005
Posts: 1
09-12-2005 01:46
I need a script, or help writing a script for a wheelchair. The requirements are thus:

1) The wheelchair will be worn by the av, not sat on by the av. Preferably attached at the pelvis.

2) The av must of course sit once the chair is "worn".

3) The exact location of the av when sitting must be customizable within the script. ie. the height, orientation and location on the wheelchair's seat must be a listed location in the script that can be changed as needed.

4) The chair must move like a wheelchair, no tilting or rolling off a level axis.

I realize there are wheelchair scripts out there, and the only one I've found so far is rather simplistic and doesn't have the customization I need to position the av on the chair. My only real dilema with this particular script is that when I wear the wheelchair, the av sits too low, with the seat of the chair level with my sternum, and nowhere in the script is there a part where I can raise the height of the av on the chair.

Any help in obtaining or writing a script that can do what I need would be greatly appreciated.
Fox Stirling
Certified Lunatic
Join date: 16 Aug 2004
Posts: 120
09-12-2005 08:28
When an object is attached to an avatar, I don't think there is a way to reposition it with a script. However, once attached, it can be modified to fit and sit properly by right clicking the attached object and selecting edit, then manually moving/rotating it until it looks correct.

Problems you might run into with this:
I imagine your avatar will be using a custom sit animation which may cause the chair to sink into the ground if the seat is higher than your avatars hip height, or float if it is lower.. This is because animations (correct me if I'm mistaken) use the avatars hips as a reference point for height.

Another idea for you:
So.. To make the wheelchair more universal, instead of attaching it, you may want to instead sit on it, and use a vehicle script to make it move, and a sit script to position the avatar properly. I'll try to post an example for you later today when I get home from work unless someone else gets to it before then. If no one gets back to you or if you're totally stuck, IM me inworld and I'll try to give you a hand with this.

Fox
_____________________
...
Dianne Mechanique
Back from the Dead
Join date: 28 Mar 2005
Posts: 2,648
09-12-2005 08:55
From: Saranya Maltese
I need a script, or help writing a script for a wheelchair. The requirements are thus:

1) The wheelchair will be worn by the av, not sat on by the av. Preferably attached at the pelvis.

2) The av must of course sit once the chair is "worn".

3) The exact location of the av when sitting must be customizable within the script. ie. the height, orientation and location on the wheelchair's seat must be a listed location in the script that can be changed as needed.

4) The chair must move like a wheelchair, no tilting or rolling off a level axis.

I realize there are wheelchair scripts out there, and the only one I've found so far is rather simplistic and doesn't have the customization I need to position the av on the chair. My only real dilema with this particular script is that when I wear the wheelchair, the av sits too low, with the seat of the chair level with my sternum, and nowhere in the script is there a part where I can raise the height of the av on the chair.

Any help in obtaining or writing a script that can do what I need would be greatly appreciated.
I am only a beginner scripter, but almost any pose script that allows an avatar to sit on something has the vector of the sit target in the script (three numbers sepearated by commas within caret brackets), by adjusting those numbers, you can adjust the sit target or the position of the avatar relative to the object she/he is sitting on.

If you want to be able to adjust the pose after you have sat, then the same code needs to be put in a pose ball. The avatar sits on the pose ball and (in edit mode), the pose ball is of course repositionable. So you can move your "sat" avatar around releative to the chair that way, by moving the poseball.

The poseball code is freely available but if you need a copy I have one I pasted together I can drop on you.
_____________________
.
black
art furniture & classic clothing
===================
Black in Neufreistadt
Black @ ONE
Black @ www.SLBoutique.com


.
Lost Oddfellow
Registered User
Join date: 15 Sep 2005
Posts: 33
09-15-2005 07:19
I'd love a copy of that pose ball script if you don't mind giveing it away
and for the same reason to :P

actually If anyone can point me in the general direction of the script that causes the avatar to fold up into a very, very, very small ball that would be handy too.