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

restoreEquipment

restoreEquipment(writer, entity, saved): void

Wears a save’s items on the entity, and puts their modifiers on its stats from what each item is now, with saved: false, so the stats save leaves them out: every slot’s source is taken off first. A worn item the game no longer registers throws in development and is set aside with no modifiers in a published game. A slot the engine does not have is left out.

Parameter Type
writer EntityAuthority
entity Entity
saved SavedEquipment

void