> 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.setcaninteract.md).

# Interactable.SetCanInteract

<mark style="color:blue;">public float</mark> <mark style="color:yellow;">SetCanInteract</mark>(<mark style="color:blue;">bool</mark> <mark style="color:$primary;">enabled</mark>)

Enables/disables the object’s ability to **be interacted with**.\
Useful to **block** or **re-enable** interactions at runtime.

```csharp
public Interactable interactable;

public void BlockInteract()
{
    interactable.SetCanInteract(false);  // blocks interaction
    
    interactable.SetCanInteract(true); // re-enables interaction
}
```
