Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Object position (to stand on)?

Motoko Karu
Registered User
Join date: 28 May 2008
Posts: 11
09-21-2008 00:53
Hello Everyone,

I was wondering if there is a way to create a script that would allow my av to be able to stand on various objects within SL.

For example if there's a cube on the floor and I right click on it... I have the option "Sit On"

I'd like to try creating something where I could stand on various objects.

I'm assuming I'd probably would need something like llSitTarget, and use some sort of standing animation.

However I'm not certain as how to find the target of an object in front of me, or within my mouse-pointer position.

Any ideas would be great.

*Arrigato* ^_^

--Motoko
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
09-21-2008 01:12
That is, pretty much, EXACTLY what you would do.

To start, search your inventory for "posing stand". A lot of these are full-permissions. In fact, here's one (drops on your profile). Next, you're going to want a standing animation. There are millions of these out there. You can make your own with a program like avimator.. or you can ususally find some freebies. You can also doanload the official SL standing animations.

http://static.secondlife.com/downloads/avatar/bvh_files.zip

of course, you don't HAVE to reupload these animations, you can call them "by name"...
http://rpgstats.com/wiki/index.php?title=Animation#Built-in_Animations
_____________________

● Inworld Store: http://slurl.eclectic-randomness.com
● Website: http://www.eclectic-randomness.com
● Twitter: @WinterVentura
Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
09-21-2008 04:54
I may well be mistaken, but I interpreted the question as being about how create a gadget that lets you start (rather than sit) on objects upon which you would otherwise find yourself sitting if you weren't using the gadget. How do you stand on a chair I've made rather than make a chair that people automatically stand on?

I have not tried it but my first thought is that playing around with an animation overrider would be the way to go. Simply replace one of the sitting anims with a standing one and, whenever you want to stand on a box rather than sit on it, tell the AO to replace the default sit anim with your standing anim when AGENT_ON_OBJECT is true. You would of course have to remember, when you get off, to switch it back to the anim you normally play when you sit on something.

I don't know much about animations and would welcome clarification, but I suspect you would have to make a special stand anim to play when you were doing this, because otherwise wouldn't the object's sit target setting, which tries to adjust where your hips are in relation to the prim, would make you appear to stand in, rather than on, the box?

Or can you adjust sitting offsets from the AO? For all sorts of reasons it would be handy if you could, but I doubt you can..