Description
A single spawn rule describing one possible way an item may spawn (chance, coordinates, rotation, locker options, room/zone lists, and replacement options).
Parameters
chance—float(0–100) — Percent chance thisSpawnDataentry will result in a spawn. Default:30.coords—Vector3— Explicit coordinates for spawn. If non-zero/used, these coordinates take precedence over dynamic spawn/zone lists.rotation—Vector3— Rotation for the spawned item.locker_settings—LockerSpawn— Locker-specific spawn configuration (enable, locker type, room, zone, chamber, offset).dynamic_spawn—array[DynamicSpawn]— Room + coordinates pairs where the item is allowed to spawn. Used whencoordsis not specified.zones—array[FacilityZone]— Facility zones (enum) where the item may spawn. Used when bothcoordsanddynamic_spawnare empty.replace_existing_pickup—bool— Iftrue, this spawn entry will replace an existing in-game pickup instead of spawning on the floor.force_item—bool— Iftrueandreplace_existing_pickupis used, only pickups of the same item type will be replaced.replace_items_in_pedestals—bool?— Iftrue, this spawn entry can replace items located in SCP pedestals.
Precedence summary
- If
coordsis provided on theSpawnDataentry, those coordinates are used. - Else, if
dynamic_spawnhas entries, the system will use one of thoseDynamicSpawn(room + coords) entries. - Else, the
zoneslist is used to pick a spawn location within the given facility zone(s).
Example Yaml context
{% code expandable="true" %}
spawn:
do_spawn: true
spawn_settings:
- chance: 40
coords:
x: 10
y: 1
z: -3
rotation:
x: 0
y: 0
z: 0
replace_existing_pickup: false
- chance: 25
dynamic_spawn:
- room: Lcz914
coords:
x: 1
y: 1
z: 1
zones:
- HeavyContainment
replace_existing_pickup: true
force_item: true
replace_items_in_pedestals: false{% endcode %}