Character.setLockingInteractable

Set the Interactable that the Character is locked to. Set Interactable to nil to unlock.

Kind: Function

Environments: Game

Game

character:setLockingInteractable( interactable )

Open the full Game reference

Parameters:

Name Type Description
character Character The character.
interactable Interactable The interactable.

Returns:

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