Space Station 13 - Modules - TypesVar Details - Proc Details

mob_spawning

Vars

MOB_SPAWNING_EVENT_SPACESpawns mobs on space edge turfs and throws them at the ship.
delete_on_endBoolean. If set, deletes linked mobs when the event ends.
mobsList of spawned mobs linked to this event.
mobs_to_spawnList or weighted list of mob paths to spawn.
remaining_to_spawnInteger. Remaining number of mobs to spawn. Counts down from total_to_spawn as mobs are spawned in.
spawn_areaString. One if MOB_SPAWNING_EVENT_*. Determines the spawn location/method of the mobs.
total_spawnedInteger. Number of mobs the event spawned. Used for debug logs.
total_to_spawn_per_zInteger. Total number of mobs to spawn per z-level. Does not mean this number will spawn at each z-level, but rather multiplies this number by the affected z-levels to determine the total mobs to spawn.
wave_to_spawnInteger. Number of mobs to spawn in a single 'wave'.

Procs

lag_checkLag mitigation checks. Returns TRUE if spawning mobs is safe, FALSE otherwise.
mob_destroyedHandler for mob destroyed events.
spawn_mobsHandler for spawning and 'throwing' mobs at the ship.

Var Details

MOB_SPAWNING_EVENT_SPACE

Spawns mobs on space edge turfs and throws them at the ship.

delete_on_end

Boolean. If set, deletes linked mobs when the event ends.

mobs

List of spawned mobs linked to this event.

mobs_to_spawn

List or weighted list of mob paths to spawn.

remaining_to_spawn

Integer. Remaining number of mobs to spawn. Counts down from total_to_spawn as mobs are spawned in.

spawn_area

String. One if MOB_SPAWNING_EVENT_*. Determines the spawn location/method of the mobs.

total_spawned

Integer. Number of mobs the event spawned. Used for debug logs.

total_to_spawn_per_z

Integer. Total number of mobs to spawn per z-level. Does not mean this number will spawn at each z-level, but rather multiplies this number by the affected z-levels to determine the total mobs to spawn.

wave_to_spawn

Integer. Number of mobs to spawn in a single 'wave'.

Proc Details

lag_check

Lag mitigation checks. Returns TRUE if spawning mobs is safe, FALSE otherwise.

mob_destroyed

Handler for mob destroyed events.

spawn_mobs

Handler for spawning and 'throwing' mobs at the ship.