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

restoreStats

restoreStats(writer, entity, saved): void

Lays a save’s stats on the entity: each stat’s base where the save holds one, and its modifiers in place of the ones it has, but for the ones added with saved: false, which stay. Its bounds, and every stat the save does not name, stay as declared.

Parameter Type
writer EntityAuthority
entity Entity
saved SavedStats

void