Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Ideal for Mannequin-Style Bots (Should work with any SL Bot Services
- // or Bot/Text Viewers.)
- // This script is designed to activate lifelike AO stand animations while
- // your bot is waiting for the command to be "seated" on posestands or any
- // objects with built in animations.
- // Revised to pick a stand animation at random. Place this script and your
- // stand-only (idle) animations in a prim and attach the prim to your bot's
- // avatar.
- default
- {
- attach(key id)
- {
- if ( id ) llRequestPermissions(id , PERMISSION_OVERRIDE_ANIMATIONS);
- else if ( llGetPermissions() & PERMISSION_OVERRIDE_ANIMATIONS ) llResetAnimationOverride("ALL");
- }
- run_time_permissions(integer perms)
- {
- if ( perms & PERMISSION_OVERRIDE_ANIMATIONS )
- {
- integer standz = llGetInventoryNumber(INVENTORY_ANIMATION);
- string idle = llGetInventoryName(INVENTORY_ANIMATION, (integer)llFrand(standz));
- llSetAnimationOverride("Standing",idle);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement