Skip to content
KCKingdoms Connected Scripting APIScripting guides and API
Data shapeServer APIGenerated

SmartObjectDefinition

Defined in: server/api.d.ts:6304

A smart object to place, as SmartObject.spawn takes it and a World Builder map’s smartObjects array stores it.

optional bare?: boolean

Defined in: server/api.d.ts:6328

True to place it without the blueprint’s furniture: only the place a body takes, or the station, and the prompts that offer it, for a prop of your own choosing to stand there instead. Only a blueprint SmartObject.blueprints() lists with bare takes it. False when omitted.


blueprint: string

Defined in: server/api.d.ts:6308

What to place, by the name SmartObject.blueprints() lists: Bench/bench_2places_low, Bed/bed_low, Table/table_dice, profession/apothecary/alchemyTable_wip.


optional name?: string

Defined in: server/api.d.ts:6323

What a script finds it by, up to 64 bytes of UTF-8.


position: number[] | Vector3

Defined in: server/api.d.ts:6313

Where it stands: the prefab’s own origin, as the level’s copies of it stand.


optional rotation?: number[] | Quaternion

Defined in: server/api.d.ts:6318

Which way it faces: a Quaternion, {x, y, z, w} or [x, y, z, w]. None when omitted.