Edie_Shoreland icon

Simple Idle Stand Bot AO

Edie_Shoreland | PRO | 09/20/18 12:10:12 PM UTC | 0 ⭐ | 8811 👁️ | Never ⏰ | []
Linden Scripting |

0 B

|

None

|

0 👍

/

0 👎

// 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);
        }
    }
}

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎