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

bakeGroundObstacles

bakeGroundObstacles(entity, bakeObstaclesOptions?): () => void

Bakes what of the entity’s scatter blocks a walker into its Obstacles trait, from the scatter shapes table unless handed other shapes. Returns what takes the trait off and frees the bake, which a second bake calls first or is refused.

Parameter Type
entity Entity
bakeObstaclesOptions Pick<BakeObstaclesOptions, "shapes">

() => void