# INVENTORY_ANIMATION

*LSL constant*

```lsl
integer INVENTORY_ANIMATION = 20;
```

Constant groups: [InventoryType](/constants/groups/InventoryType/)

Used with [Inventory](https://wiki.secondlife.com/wiki/Category:LSL_Inventory) functions and specifies inventory items of ANIMATION type will be retrieved by the function.

## Examples

<details open>
<summary>Example 1</summary>

```lsl collapse={1-9}
//Gives inventory only to agents with the same active group as the object the script is in is assigned to
default
{
    touch_start(integer total_number)
    {
        // get the UUID of the person touching this object
        key user = llDetectedKey(0);
        // Check that they have the correct group active
        // User must be in the same region for llSameGroup() to work. (Well, so they should be!)
        if (llSameGroup(user) )
            // Give user the first animation from this object's contents
            llGiveInventory(user, llGetInventoryName(INVENTORY_ANIMATION, 0) );
        else
            // send a warning specifically to this user
            llRegionSayTo(user, 0, "Wrong active group!");
    }
}
```

</details>

## See also

### Constants

- [INVENTORY_NONE](/constants/INVENTORY_NONE/)
- [INVENTORY ALL](/constants/INVENTORY_ALL/)
- [INVENTORY BODYPART](/constants/INVENTORY_BODYPART/)
- [INVENTORY CLOTHING](/constants/INVENTORY_CLOTHING/)
- [INVENTORY GESTURE](/constants/INVENTORY_GESTURE/)
- [INVENTORY LANDMARK](/constants/INVENTORY_LANDMARK/)
- [INVENTORY NOTECARD](/constants/INVENTORY_NOTECARD/)
- [INVENTORY OBJECT](/constants/INVENTORY_OBJECT/)
- [INVENTORY SCRIPT](/constants/INVENTORY_SCRIPT/)
- [INVENTORY SETTING](/constants/INVENTORY_SETTING/)
- [INVENTORY SOUND](/constants/INVENTORY_SOUND/)
- [INVENTORY TEXTURE](/constants/INVENTORY_TEXTURE/)

### Functions

- [llGetInventoryType](/functions/llGetInventoryType/)
- [llGetInventoryNumber](/functions/llGetInventoryNumber/)
- [llGetInventoryName](/functions/llGetInventoryName/)

---

*Source: [INVENTORY ANIMATION](https://wiki.secondlife.com/wiki/INVENTORY_ANIMATION) on the Second Life Wiki. Content from the Second Life Wiki article INVENTORY ANIMATION (revision 1208004, 2019-02-01), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/constants/INVENTORY_ANIMATION/
