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

addResource

addResource(writer, entity, handle): void

Gives entity the resource, where its settings say it starts, as <Resource> and the CharacterSpawn’s resources do: its maximum is the base of its max<Name> stat, which modifiers raise and lower. An entity that has it starts it over. Add it before a save’s stats are restored, so a saved stat wins. A kind the entity’s world has not installed throws, naming the list to add it to.

Parameter Type
writer EntityAuthority
entity Entity
handle ResourceHandle

void