Dora Gustafson Posted March 5, 2011 Share Posted March 5, 2011 New forum EditionThis script is almost as simple as can be, so it is easy to make changes to.To use it:Type the desired animation name into the script by replacing the default built-in: "stand".If the animation is not built-in, then drop the animation in the pose ball primSave(compile) the script in the pose ball primNow you are ready to sit on the pose ball// Basic pose ball script. by Dora Gustafson, Studio Dora 2010 // Free for anybody to read, copy, modify, compile, use, rip apart, trample on and flush // v1.3 with Set Click Action string animation = "stand"; // name of built-in animation or animation in prim inventory default { state_entry() { llSitTarget( <0.0, 0.0, 0.01>, ZERO_ROTATION ); llSetSitText(llToUpper(animation)); llSetClickAction(CLICK_ACTION_SIT); } changed(integer change) { if (change & CHANGED_LINK) { key sitter = llAvatarOnSitTarget(); if(sitter != NULL_KEY) llRequestPermissions(sitter , PERMISSION_TRIGGER_ANIMATION); else { if (llGetPermissions() & PERMISSION_TRIGGER_ANIMATION) llStopAnimation(animation); llSetAlpha(1.0, ALL_SIDES); // show prim } } } run_time_permissions(integer perm) { if ( perm & PERMISSION_TRIGGER_ANIMATION ) { llSetAlpha(0.0, ALL_SIDES); // hide prim llStartAnimation(animation); llStopAnimation("sit"); } } }Besides handling the animation, the script has only few features:It hides the ball prim on sit and shows it on unsitSets SitText to the name of the animationSets "ClickAction" to Sit on a mouse clickHas neither hide or show on chat commands. This makes it "Low Lag"Has no floating/hover textLink to old forum 2 1 Link to comment Share on other sites More sharing options...
tank95634 Posted April 28, 2012 Share Posted April 28, 2012 there is no "stand" command line and i dont know where to put one in.... Link to comment Share on other sites More sharing options...
PeterCanessa Oh Posted April 28, 2012 Share Posted April 28, 2012 The 5th line has the default animation name "stand". Change it to the name of your animation. string animation = "stand"; // name of built-in animation or animation in prim inventory Link to comment Share on other sites More sharing options...
Maevan Sabretooth Posted November 25, 2012 Share Posted November 25, 2012 It's not working for me..I have a simple prim, nothing in it but this script and my animation. The names match in the script and on the animation, but when I sit on it the animation doesn't play..I don't know what could be wrong 1 Link to comment Share on other sites More sharing options...
Lisa Littlepaws Posted June 15, 2013 Share Posted June 15, 2013 Hi! I'm experiencing the same thing. Did you every get a fix? Link to comment Share on other sites More sharing options...
Innula Zenovka Posted June 16, 2013 Share Posted June 16, 2013 I suspect the problem is that your AO is overriding the pose-ball animation. 1 Link to comment Share on other sites More sharing options...
Lisa Littlepaws Posted July 7, 2013 Share Posted July 7, 2013 Hehe No, not in my case at least. I go noob when I test my builds to avoid simple oversights like that. Thank you very much for the suggestion though ^^ Link to comment Share on other sites More sharing options...
Janford Flax Posted October 4, 2014 Share Posted October 4, 2014 Thanks for the great script. How can I modify it to be owner-only? Link to comment Share on other sites More sharing options...
Recommended Posts
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