Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Standing on an object script

jaas Box
Registered User
Join date: 10 Jan 2007
Posts: 19
01-24-2007 07:38
I am looking for a script that will, once touched, will move the avatar to the object and stand them on the platform and put the hands somewhere on the object, respectively on the objects handlebars.

So Am I looking for something that attaches the feet and hands? Where do I start? I am new to scripting, so any help would be much appreciated. Thanks!
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
01-24-2007 08:20
From: jaas Box
I am looking for a script that will, once touched, will move the avatar to the object and stand them on the platform and put the hands somewhere on the object, respectively on the objects handlebars.

So Am I looking for something that attaches the feet and hands? Where do I start? I am new to scripting, so any help would be much appreciated. Thanks!


What you're trying to do is activate the sit function on touch. This is selectable from the edit options of the object. No scripting required!

However thats only half the story. You are also wanting to overide the basic sit animation, either with one of the built in sits or possibly one that you will supply.

To do this will require a script that detects when the prim has been sat on using the changed event handler.
jaas Box
Registered User
Join date: 10 Jan 2007
Posts: 19
01-24-2007 11:12
Ok, well we'll start with the easy stuff first. When the object is touched I want him or her to stand on this platform area and put their hands into a particular position, like they are holding handle bars while standing up. So do I have to make my own pose for that? If so, is there a program out there to help in the process?
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
01-24-2007 12:29
From: jaas Box
Ok, well we'll start with the easy stuff first. When the object is touched I want him or her to stand on this platform area and put their hands into a particular position, like they are holding handle bars while standing up. So do I have to make my own pose for that? If so, is there a program out there to help in the process?



Several :) but I've no idea what they are :)
BUT before you go that root take a look at the wiki. This page details all the built in animations. motorcycle_sit may be of use to you
Valradica Vanek
Registered User
Join date: 1 Aug 2006
Posts: 78
animations
01-24-2007 12:51
what you need is a pose animator - go to the animations forum and find the link to pose software that is free or unfree depending on what you want. I suggest you get the free Avimator or the Qavimator which are both free, easy to use and work well with Second Life. There is a lot to learn about animations so read the basic tutorials and sticky forum entries on the Animation Forum.

I would also suggest that you read the information about llSitTarget in the LSL wiki cuz this will help you get where you want to go. What you are asking to do is easy, but there is quite a bit of fundamental knowledge you need. After you have done some reading on your own, look me up and we can chat about details. I have made a number of such animations and am still getting used to the details.

Oh, and you will also do well to do some reading on permissions, cuz you can't change the basic sit position to another animation until you get permission to do so. llGetPermissions will start you on the mysterious journey of avatar permissions in SL.

All in all, to do what you want:
1) you have to make or acquire a pose or an animation (Avimator). You have to then upload it to SL ($L10) and set the parameters so that it behaves properly when you invoke the animation.
2) you have to define a Sit Target on the prim or prim set where you want the Avatar to pose. This is done a simple script (llSitTarget)
3) you have to give permission to the prim set to allow it to animate your avatar, once seated. This is also done in the script (llGetPermissions, etc)
4) you have to then start the desired animation in the script (llStartAnimation) and be sure to stop the old animation (llStopAnimation)

After you have read up on this a bit, find me and I can help iron out the nuances.
Cheers - Valradica Vanek