# Character.setLockingInteractable

Set the [Interactable](../Game-Script-Environment/Userdata/Interactable.md) that the [Character](../Game-Script-Environment/Userdata/Character.md) is locked to. Set [Interactable](../Game-Script-Environment/Userdata/Interactable.md) to nil to unlock.

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
character:setLockingInteractable( interactable )
```

[Open the full Game reference](../Game-Script-Environment/Userdata/Character.md#setlockinginteractable)

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `character` | [Character](../Game-Script-Environment/Userdata/Character.md) | The character. |
| `interactable` | [Interactable](../Game-Script-Environment/Userdata/Interactable.md) | The interactable. |

**Returns:**

| Type | Description |
| --- | --- |
| boolean | True if the character was successfully locked or unlocked. |
