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

restoreEquipment

restoreEquipment(entity, saved): void

Wears a save’s items on the entity, and puts their modifiers on its stats from what each item is now: every slot’s source is taken off first, so the modifiers a save’s stats hold count once, and a worn item the game no longer registers is dropped with its modifiers, with a warning in development. A slot the engine does not have is left out.

Parameter Type
entity Entity
saved SavedEquipment

void