ShapeClass.client_onAction

Called when the interactable receives input from a Player with the Character locked to the Interactable.

Kind: Callback

Environments: Game

Game

Callback side: Client

ShapeClass:client_onAction( action, state )

Open the full Game reference

When a Character is seated in an Interactable Shape with a "seat" component, the Character is also considered locked to the Interactable.

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.