Posted by daniloloko dawes on Thu 26 Jan 14:01
download | new post
- // Open Pose Ball
- // from Dolyn Foley
- // Feel free to ask me about this code
- // Please pass it on, a la GPL
- string sitAnimation = "";
- // if sitAnimation is left blank
- // the script will grab the first animation in the container.
- // if a value is set, it will use that instead.
- //string sitAnimation = "yoga_float";
- default {
- }
- // if blank, we look in inventory
- // oops, use default
- sitAnimation = "sit";
- }
- }
- }
- // Using state to control sitting
- // If you're in this state, no one is sitting
- }
- }
- }
- state sitting;
- }
- }
- }
- state sitting {
- }
- // Oddly, this event listener NEEDS to be here.
- // If it isn't, then when you shift out of this state,
- // then event goes dead in default.
- }
- // Assume sitting, thus any CHANGED_LINK means standing.
- }
- }
- }
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.