ShapeClass.client_canInteract
Called to check whether the Interactable can be interacted with at this moment.
Kind: Callback
Environments: Game
Game
Callback side: Client
ShapeClass:client_canInteract( character )
Note: This callback can also be used to change the interaction text shown to the player using sm.gui.setInteractionText. (Defaults to "E Use")
Note: Can be used to override restrictions. (See Shape.usable)
Parameters:
| Name | Type | Description |
|---|---|---|
self |
table | The class instance. |
character |
Character | The Character of the Player that is looking at the Shape. |
Returns:
| Type | Description |
|---|---|
| boolean | A boolean indicating whether the interactable can be interacted with or not. (Defaults to true if client_onInteract is implemented, otherwise false) |