# Equipment Component

<figure><img src="https://514197743-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNZYB26cJYeWLpQVghvsJ%2Fuploads%2F8ENAW7kxBCCj6cEf15gk%2FEquipmentSlot.png?alt=media&#x26;token=489f78dc-d3e8-4a9d-82be-1e201e5a10a8" alt=""><figcaption></figcaption></figure>

The Equipment Component allows you to set Data assets into custom "Slots", automatically unequipping that slot whenever a new item is equipped to it. If an equipment component shares an actor with a combatant component, it will **automatically be registered as an attribute modifier source.**

<figure><img src="https://514197743-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNZYB26cJYeWLpQVghvsJ%2Fuploads%2FpNOxlO5bBsGZrvP6Ya3x%2Fimage.png?alt=media&#x26;token=ab2d07a6-3192-4f47-bf4d-ec3fbbb764a0" alt=""><figcaption><p>An example of setting an actor's default equipment</p></figcaption></figure>

You can add an equipment slot from either a string or by creating a new "Equipment Slot Asset".

### Equipment Slot Asset

<figure><img src="https://514197743-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNZYB26cJYeWLpQVghvsJ%2Fuploads%2FcFw3hfPOE5ZGiN6Kzclp%2Fimage.png?alt=media&#x26;token=c91f1ecc-1f17-49bb-aaf6-4a5062aaaec0" alt=""><figcaption></figcaption></figure>

|                     |                                                                                                                      |
| ------------------- | -------------------------------------------------------------------------------------------------------------------- |
| Accepted Categories | The category tag a data asset must have to be allowed into this slot. (If empty, all assets are allowed)             |
| Accepted Tags       | Gameplay tag a data asset must have at least one of to be allowed into this slot. (If empty, all assets are allowed) |
| Slot Script         | <p>A scriptable object for creating/adding more </p><p>specific logic to this slot.</p>                              |

### Equipment Component

<figure><img src="https://514197743-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNZYB26cJYeWLpQVghvsJ%2Fuploads%2FclsCxlYyHIEG8xK5k3UM%2Fimage.png?alt=media&#x26;token=5c3e2fea-85bc-4312-95f0-1ca739f24950" alt=""><figcaption></figcaption></figure>

|                         |                                                                                                                                          |
| ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| Equip Item              | Equips an item into a given custom slot based on a slot asset. Slot Label = Slot Asset name. (Automatically salls "Unequip slot" first.) |
| Equip Item (Slot Label) | Equips an item into a given custom slot based on a slot string. (Automatically salls "Unequip slot" first.)                              |
| Unequip Slot            | Removes whatever data item is in the given slot name. Ignores if the slot is empty.                                                      |
