Space Station 13 - Modules - TypesVar Details - Proc Details

grouped_spawner

Can be used to group spawners together so you ensure a certain amount of things are spawned but can be spawned on multiple locations.

How to use: Either place the base grouped_spawner in the map and define the group_id to determine which spawners belong to one another. Or make a child instance of the grouped_spawner and define the values there.

When using the base version be sure to define both total_amount and max_per_spawner on at least one of the spawners of the group. A mismatch between instances of the same group between these values will lead to a runtime. So either leave it empty for the rest or have the rest have the same values

Vars

chosen_spawnersWhich spawners are chosen to spawn the objects
group_idThe id of the group this spawner belongs to. If left empty it'll use the type as id. Define this for map instances if you want to link different spawners up or want to use the base version.
max_per_spawnerHow many will spawn maximum per spawner. Set this in the map edit tool or in a child instance to set it for all the other instances.
max_per_spawner_for_spawnersThe list which holds the max_per_spawner values for each spawner group
path_to_spawnWhich path will be used to spawn.
spawner_groupsThe assoc list of grouped spawners. Key = group_id, value = list of spawners with that key
total_amountHow many will spawn. Set this in the map edit tool or in a child instance to set it for all the other instances.
total_amount_for_spawnersThe list which holds the total_amount values for each spawner group

Procs

get_spawn_valuesSets the spawn values to the values of the first defined instance of this group_id
save_spawn_valuesSaves the spawn values. Will only pick the first defined version of this group_id

Var Details

chosen_spawners

Which spawners are chosen to spawn the objects

group_id

The id of the group this spawner belongs to. If left empty it'll use the type as id. Define this for map instances if you want to link different spawners up or want to use the base version.

max_per_spawner

How many will spawn maximum per spawner. Set this in the map edit tool or in a child instance to set it for all the other instances.

max_per_spawner_for_spawners

The list which holds the max_per_spawner values for each spawner group

path_to_spawn

Which path will be used to spawn.

spawner_groups

The assoc list of grouped spawners. Key = group_id, value = list of spawners with that key

total_amount

How many will spawn. Set this in the map edit tool or in a child instance to set it for all the other instances.

total_amount_for_spawners

The list which holds the total_amount values for each spawner group

Proc Details

get_spawn_values

Sets the spawn values to the values of the first defined instance of this group_id

save_spawn_values

Saves the spawn values. Will only pick the first defined version of this group_id