Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

useAction

useAction(action, actionListener): void

Runs onPress and onRelease on each press and release of action, an engine action of engineActions or a plugin’s page action, while the component is mounted: on its keys, wherever the game’s bindings or controls() put them, and on its touch button. A key a focused field owns presses nothing, nor does a chord with Ctrl, Alt or ⌘, but under a Ctrl or an Alt the game binds itself, such as a crouch on Ctrl. As Roblox’s ContextActionService:BindAction.

Parameter Type
action PageActionHandle
actionListener ActionListener

void