spawner
Vars | |
faction | Faction to grant to mobs (only applies to mobs) |
---|---|
max_spawned | Maximum number of atoms we can have active at one time |
spawn_delay | Time until we next spawn |
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 |
Procs | |
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 |
Var Details
faction
Faction to grant to mobs (only applies to mobs)
max_spawned
Maximum number of atoms we can have active at one time
spawn_delay
Time until we next spawn
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