/tg/ Station 13 - Modules - TypesVar Details - Proc Details

spawner

Vars

factionFaction to grant to mobs (only applies to mobs)
max_spawn_per_attemptHow many mobs can we spawn maximum each time we try to spawn? (1 - max)
max_spawnedMaximum number of atoms we can have active at one time
spawn_distanceDistance from the spawner to spawn mobs
spawn_distance_excludeDistance from the spawner to exclude mobs from spawning
spawn_textVisible message to show when something spawns
spawn_timeTime to wait between spawns
spawn_typesList of atom types to spawn, picked randomly
spawned_thingsList of weak references to things we have already created

Procs

mob_stat_changedCalled when a mob we spawned dies, remove it from the list and unregister signals
on_deletedCalled when an atom we spawned is deleted, remove it from the list
stop_spawningStop spawning mobs
try_spawn_mobTry to create a new mob
validate_referencesRemove weakrefs to atoms which have been killed or deleted without us picking it up somehow

Var Details

faction

Faction to grant to mobs (only applies to mobs)

max_spawn_per_attempt

How many mobs can we spawn maximum each time we try to spawn? (1 - max)

max_spawned

Maximum number of atoms we can have active at one time

spawn_distance

Distance from the spawner to spawn mobs

spawn_distance_exclude

Distance from the spawner to exclude mobs from spawning

spawn_text

Visible message to show when something spawns

spawn_time

Time to wait between spawns

spawn_types

List of atom types to spawn, picked randomly

spawned_things

List of weak references to things we have already created

Proc Details

mob_stat_changed

Called when a mob we spawned dies, remove it from the list and unregister signals

on_deleted

Called when an atom we spawned is deleted, remove it from the list

stop_spawning

Stop spawning mobs

try_spawn_mob

Try to create a new mob

validate_references

Remove weakrefs to atoms which have been killed or deleted without us picking it up somehow