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

registerAbility

registerAbility(writer, handle): Disposer

Installs handle on the world writer sets up, where the room and the page each look it up by name: what abilities({ kinds }) does for each kind of its list, and what a plugin that owns an ability does in its setup, on the room and on every page, or a scene effect for one made at run time. The return takes it off while it is still the one installed. The cast time resolves here, from the release mark of the clip it plays or its castSeconds where it plays none; both, or neither, throw, as does a cost in a resource the world has not installed. A second ability under one name on one world throws, naming both, and one handle installed twice throws too.

Parameter Type
writer SetupWriter
handle AbilityHandle

Disposer