Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Question re animation script

WestOf Moonwall
Registered User
Join date: 14 Apr 2009
Posts: 8
04-24-2009 19:15
When I run the ExampleAnimationScript at http://lslwiki.net/lslwiki/wakka.php?wakka=ExampleAnimationScript, the behavior seems to be correct in most cases. However, a few of the animations such a stride and walk seem to get hung up after a single step. On the other hand, female_walk seems to work fine.

Any idea what I am doing wrong?
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
04-24-2009 21:04
Probably nothing. Every anim has a priority. It can be overridden by another anim with a higher priority, so if you have two or more running at once there's a decent chance that they will bump into each other.
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask.... ;)

Look for my work in XStreetSL at
Viktoria Dovgal
Join date: 29 Jul 2007
Posts: 3,593
04-24-2009 22:38
The built-in walking and striding have some extra magic built in that isn't available to user-uploaded animations. They are velocity sensitive. If you leave the AOs off and walk up a steep hill or in a sim with really bad time dilation, you can see that the walking will adjust to your speed.
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
04-25-2009 07:37
all the built in ones have extra magic in other ways too... they have variable priority within the animation (some parts are have a different priority within the same anim)
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
WestOf Moonwall
Registered User
Join date: 14 Apr 2009
Posts: 8
Looking for an example
04-25-2009 11:16
Does anyone know of an example script that shows how to cause an avatar to walk and run under control of the script using the built-in walk and run animations?
Viktoria Dovgal
Join date: 29 Jul 2007
Posts: 3,593
04-25-2009 15:46
From: WestOf Moonwall
Does anyone know of an example script that shows how to cause an avatar to walk and run under control of the script using the built-in walk and run animations?

I don't think you'll find one, really. Vehicles that make the avatar walk bring their own animations, or use female_walk, which as you've already seen doesn't freeze up if it's run directly. It's generic enough that a male avatar won't look silly using it (well, no sillier than when using the generic male walk).

For the run, you can get SL's BVH file and upload your own copy, then you won't need to worry about permissions or having to create your own from scratch. You can get that from http://secondlife.com/community/avatar.php

If you want an attachment, the leash-type scripts that use things like llMoveToTarget will make the avatar walk and run more or less normally.
WestOf Moonwall
Registered User
Join date: 14 Apr 2009
Posts: 8
04-25-2009 18:23
Thanks. Very helpful.