HarvestableClass.client_onAction
Called when the harvestable receives input from a player with the Character locked to the Harvestable.
Kind: Callback
Environments: Game
Game
Callback side: Client
HarvestableClass:client_onAction( action, state )
When a Character is seated in a Harvestable with a "seat" component, the Character is also considered locked to the Harvestable.
Parameters:
| Name | Type | Description |
|---|---|---|
self |
table | The class instance. |
action |
integer | The action as an integer value. More details in sm.interactable.actions. |
state |
boolean | True on begin action, false on end action. |