HarvestableClass.client_canInteract

Called to check whether the Harvestable can be interacted with at this moment.

Kind: Callback

Environments: Game

Game

Callback side: Client

HarvestableClass:client_canInteract( character )

Open the full Game reference

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 the Harvestable.

Returns:

Type Description
boolean A boolean indicating whether the harvestable can be interacted with or not. (Defaults to true if client_onInteract is implemented, otherwise false)