> For the complete documentation index, see [llms.txt](https://fast-studios.gitbook.io/press-e/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fast-studios.gitbook.io/press-e/manual/scripting/interactable/interactable.maxholdinteractions.md).

# Interactable.maxHoldInteractions

<mark style="color:blue;">public int</mark> <mark style="color:$primary;">maxHoldInteractions</mark>;

Maximum number of **Hold**-type interactions available.\
This value is **decreased by 1** every time a Hold interaction **finishes**.\
If it reaches `0` and you want to give more, you can increase it again.

{% hint style="info" %}
**Note**: to enforce a maximum, make sure **hasMaxHoldInteractions** is also enabled.
{% endhint %}

```csharp
public void ReEnableInteractions(Interactable interactable)
{
    if (interactable.hasMaxHoldInteractions && interactable.maxHoldInteractions == 0)
    {
        interactable.maxHoldInteractions = 10;
    }
    
    // Now, whenever we call this method and the player has used all
    // available Hold interactions, it increases the count so the player
    // can have (in this example) 10 more.
}
```
