Jump to content

Can't find "Sitting on Ground" animation


Yewsurname
 Share

You are about to reply to a thread that has been inactive for 2236 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

I'm writing an animation override script and I'm getting an error when I try it out saying that the animation "Sitting on Ground" can't be found. I've also tried "Sit on Ground" with no luck. Does anyone know if there is any other name for this animation? Thank you in advance.

Nevermind, solved the problem. Thank you.

Edited by Yewsurname
Solved
Link to comment
Share on other sites

"sit_ground" is the default SL animation that your viewer will apply if your AO has not replaced it with a specific animation that has a different name.  In your case, your AO is expecting a specific anim that you have named "Sitting on Ground" and it's not finding it. Hence the error message. Supply that specific anim or change the AO script to use the default internal anim.

Link to comment
Share on other sites

I saw "Sit on Ground" and "Sitting on Ground" listed as the animation names under the LSL Portal on SL wiki. I've made overrides for other anims that used these types of names as well, such as: "Soft Landing", "Falling Down", etc. Either way, I figured out an answer less than 10 min after posting this :P

Edited by Yewsurname
Link to comment
Share on other sites

(For the benefit of people trying to fix similar problems in the future)   The wiki entries on llGetAnimation and llGetAnimationOverride are possibly misleading, in that it doesn't make sufficiently explicit the distinction between the animation state (in this case "Sitting on Ground") and the default animation that plays when that state is detected (in this case, "sit_ground_constrained").

The logic in an older AO (written before llGet and llSetAnimationOverride were available) is 

  • Poll animation state in a timer event
  • If the animation state has changed to "Sitting on Ground",
  • Stop the default animation (in this case, "sit_ground_constrained"
  • Start the custom animation

A simpler way of doing it, and far kinder to the simulator, is simply to call llRequestPermissions(id, PERMISSION_OVERRIDE_ANIMATONS) when the owner attaches the AO and then, in the run_time_permissions event, call llSetAnimationOverride(""Sitting on Ground","my custom animation name") and forget about it.

Edited by Innula Zenovka
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 2236 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...