CharacterClass.client_canInteract
Called to check whether the Character can be interacted with at this moment.
Kind: Callback
Environments: Game
Game
Callback side: Client
CharacterClass:client_canInteract( character )
Note: This callback is also responsible for updating interaction text shown to the player using sm.gui.setInteractionText.
Parameters:
| Name | Type | Description |
|---|---|---|
self |
table | The class instance. |
character |
Character | The Character of the Player that is looking at this Character. |
Returns:
| Type | Description |
|---|---|
| boolean | A boolean indicating whether the characer can be interacted with or not. (Defaults to true if client_onInteract is implemented, otherwise false) |