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

addKeyEntity

addKeyEntity(authority, handle, entity): void

Registers entity to the key handle names, which this room holds: the key’s read reads it from here, and its close removes it, as a chest a player builds on their plot. Refused for a player, an entity a player’s save keeps, and an entity another key keeps; one this key keeps already changes nothing.

Parameter Type
authority EntityAuthority
handle KeyedSaveHandle
entity Entity

void