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

createCastPayload

createCastPayload(world, character, ability): object

The cast command’s payload a page sends for ability as character: the character’s target, or none for an area ability or where the character holds no living target.

Parameter Type
world World
character Entity
ability AbilityName

object

Name Type
ability string
target Entity | null