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

useCast

useCast(): CastControls

The player’s casts, for an action bar’s slot or a key: cast sends the engine’s predicted cast command with the character’s target, and refusal and refusalText hold why the player’s last one did not run. The player’s page runs the command on the tick the player pressed, so the cast state, the cost and the cooldowns show at once and the room’s result settles them. The cast’s clip plays in the cast’s step, on the press and on every page, and the room’s correction takes back the clip of a cast it refused.

CastControls