# C_DeathInfo: World of Warcraft Forever API

Forever 1.60.1 (70959), Interface 16001, Lua 5.1, from Blizzard's own API documentation. Page: https://wowaddons.gg/forever-api/C_DeathInfo

## Functions

### C_DeathInfo.GetCorpseMapPosition

```lua
position = C_DeathInfo.GetCorpseMapPosition(uiMapID)
```

Arguments:
- `uiMapID`: number

Returns:
- `position`: vector2, may be nil

### C_DeathInfo.GetDeathReleasePosition

```lua
position = C_DeathInfo.GetDeathReleasePosition(uiMapID)
```

Arguments:
- `uiMapID`: number

Returns:
- `position`: vector2, may be nil

### C_DeathInfo.GetGraveyardsForMap

```lua
graveyards = C_DeathInfo.GetGraveyardsForMap(uiMapID)
```

Arguments:
- `uiMapID`: number

Returns:
- `graveyards`: GraveyardMapInfo[]

### C_DeathInfo.GetSelfResurrectOptions

```lua
options = C_DeathInfo.GetSelfResurrectOptions()
```

May return nothing.

Returns:
- `options`: SelfResurrectOption[]

### C_DeathInfo.UseSelfResurrectOption

```lua
C_DeathInfo.UseSelfResurrectOption(optionType, id)
```

Arguments:
- `optionType`: SelfResurrectOptionType
- `id`: number

## Events

### AREA_SPIRIT_HEALER_IN_RANGE

No payload.

### AREA_SPIRIT_HEALER_OUT_OF_RANGE

No payload.

### CEMETERY_PREFERENCE_UPDATED

No payload.

### CONFIRM_XP_LOSS

No payload.

### CORPSE_IN_INSTANCE

No payload.

### CORPSE_IN_RANGE

No payload.

### CORPSE_OUT_OF_RANGE

No payload.

### PLAYER_ALIVE

No payload.

### PLAYER_DEAD

No payload.

### PLAYER_SKINNED

Payload, after the event's name:
- `hasFreeRepop`: number

### PLAYER_UNGHOST

No payload.

### REQUEST_CEMETERY_LIST_RESPONSE

Payload, after the event's name:
- `isGossipTriggered`: bool

### RESURRECT_REQUEST

Payload, after the event's name:
- `inviter`: cstring

### SELF_RES_SPELL_CHANGED

No payload.

## Tables

### Enum.SelfResurrectOptionType (enumeration)

- `Spell` = 0
- `Item` = 1

### GraveyardMapInfo (structure)

- `areaPoiID`: number
- `position`: vector2
- `name`: cstring
- `textureIndex`: number
- `graveyardID`: number
- `isGraveyardSelectable`: bool

### SelfResurrectOption (structure)

- `name`: string
- `optionType`: SelfResurrectOptionType
- `id`: number
- `canUse`: bool
- `isLimited`: bool
- `priority`: number

---
Make an addon with your AI: tell it "Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it."
