# EnemyGroup

This datablock is used for setting enemy spawns with a focus on randomization.

{% hint style="info" %}
Spawning enemies is explained in [EnemySpawningData](/wiki/reference/nested-types/enemyspawningdata.md#how-to-pick-enemy-spawns).
{% endhint %}

{% hint style="warning" %}
EnemyGroup blocks 37 and 38 are used by birther and birther boss respectively. This can only be changed with mods.
{% endhint %}

## Fields

### Type - [eEnemyGroupType](/wiki/reference/enum-types.md#eenemygrouptype) (enum)

Type match of this group.

There are special types, explained in [EnemySpawningData](/wiki/reference/nested-types/enemyspawningdata.md#how-to-pick-enemy-spawns).

### Difficulty - [eEnemyRoleDifficulty](/wiki/reference/enum-types.md#eenemyroledifficulty) (enum)

Difficulty match of this group.

### SpawnPlacementType - [eSpawnPlacementType](/wiki/reference/enum-types.md#espawnplacementtype) (enum)

Defines where enemies are placed in the selected area.

### MaxScore - Single

The score (or population points/cost) of this group.

### ScoreInAreaPaddingMulti - Single

Multiplier for MaxScore when adding to total placed score in area.

The higher the area's score, the less likely it is to be picked for another enemy group.

### RelativeWeight - Single

Relative weight of this group. Affects how likely it is to be selected when several are matched.

### Roles - [List EnemyGroupCompositionData](/wiki/reference/nested-types/enemygroupcompositiondata.md) (nested type)

List of roles in this group. Each role will spawn one type of enemy when this group is selected.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gtfo-modding.gitbook.io/wiki/reference/datablocks/main/enemygroup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
