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.
Properties
Section titled “Properties”
optionalbare?: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
Section titled “blueprint”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.
optionalname?:string
Defined in: server/api.d.ts:6323
What a script finds it by, up to 64 bytes of UTF-8.
position
Section titled “position”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.
rotation?
Section titled “rotation?”
optionalrotation?: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.