HarvestableClass.client_onInteract
Called when a Player is interacting with the Harvestable by pressing the 'Use' key (default 'E').
Kind: Callback
Environments: Game
Game
Callback side: Client
HarvestableClass:client_onInteract( character, state )
Parameters:
| Name | Type | Description |
|---|---|---|
self |
table | The class instance. |
character |
Character | The Character of the Player that is interacting with the Harvestable. |
state |
boolean | The interaction state. Always true. The HarvestableClass only receives the key down event. |