# EnemyRoleData

Maps Role/Difficulty matches to enemies using persistentIDs from [EnemyDataBlock](/wiki/reference/datablocks/main/enemy.md).

## Fields

### Role - [eEnemyRole](/wiki/reference/enum-types.md#eenemyrole) (enum)

Role match of this entry.

Note that roles have special values, see more information 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 entry.

### Enemy - UInt32 ([EnemyDataBlock](/wiki/reference/datablocks/main/enemy.md))

Enemy persistentID of this entry.

### Cost - Single

Cost of this entry. Affects how many enemies spawn when this entry is selected.

### Weight - Single

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


---

# 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/nested-types/enemyroledata.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.
