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

findMapObject

findMapObject<Fields>(entity, object): FoundMapObject<Fields> | null

entity’s fields and seed where it is a placed object, typed by its declaration, or null where it is not one.

Type Parameter
Fields extends MapObjectFields
Parameter Type
entity Entity
object MapObject<MapObjectPlacement, Fields>

FoundMapObject<Fields> | null