# INVENTORY_BODYPART

*LSL constant*

```lsl
integer INVENTORY_BODYPART = 13;
```

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

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

## Examples

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

```lsl
//Gives inventory only to agents with the same active group
default
{
    touch_start(integer total_number)
    {
        integer number = 0;
        do
        {
            if (llDetectedGroup(number)) //same as llSameGroup(llDetectedKey(number)) (with llSameGroup, detected must be in the sim)
                llGiveInventory(llDetectedKey(number), llGetInventoryName(INVENTORY_BODYPART,0));
            else
                llSay(0, "Wrong active group!");
        }while(total_number > ++number);
    }
}
```

</details>

## See also

### Constants

- [INVENTORY_NONE](/constants/INVENTORY_NONE/)
- [INVENTORY ALL](/constants/INVENTORY_ALL/)
- [INVENTORY ANIMATION](/constants/INVENTORY_ANIMATION/)
- [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 BODYPART](https://wiki.secondlife.com/wiki/INVENTORY_BODYPART) on the Second Life Wiki. Content from the Second Life Wiki article INVENTORY BODYPART (revision 1208005, 2019-02-01), CC BY-SA 3.0.*

---

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