# How to detect storm damage or elimination with verse

**URL:** <https://forums.unrealengine.com/t/how-to-detect-storm-damage-or-elimination-with-verse/1284245>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, fortnite\
**Created:** [September 5, 2023, 9:57pm UTC](https://forums.unrealengine.com/t/how-to-detect-storm-damage-or-elimination-with-verse/1284245 "2023-09-05T21:57:08Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![GraemeBB](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/graemebb/32/1106150_2.png) [@GraemeBB](https://forums.unrealengine.com/u/GraemeBB)\
**Post date:** [September 5, 2023, 9:57pm UTC](https://forums.unrealengine.com/t/how-to-detect-storm-damage-or-elimination-with-verse/1284245/1 "2023-09-05T21:57:08Z")

</div>

In the docs it says that in the elimination\_result:

```auto

# The `fort_character` eliminated from the match by `EliminatingCharacter`.
        EliminatedCharacter<native><public>:fort_character

        # `fort_character` that eliminated `EliminatedCharacter` from the match. `EliminatingCharacter` will be false when `EliminatedCharacter` was eliminated through non-character actions, such as environmental damage.
        EliminatingCharacter<native><public>:?fort_character

```

but the EliminatingCharacter never seems to be false…

How to detect if the storm eliminated somebody?

---

<div class="post-metadata">

**Author:** ![GraemeBB](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/graemebb/32/1106150_2.png) [@GraemeBB](https://forums.unrealengine.com/u/GraemeBB)\
**Post date:** [September 5, 2023, 10:29pm UTC](https://forums.unrealengine.com/t/how-to-detect-storm-damage-or-elimination-with-verse/1284245/2 "2023-09-05T22:29:00Z")

</div>

I want to also note that the Elimination Manager also does not return “false” for the eliminating character if somebody dies via storm.

This simply just doesn’t seem possible to detect a storm death as a storm death… Why? or am I missing something?

---

<div class="post-metadata">

**Author:** ![im\_a\_lama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/im_a_lama/32/995063_2.png) [@im\_a\_lama](https://forums.unrealengine.com/u/im_a_lama)\
**Post date:** [September 5, 2023, 10:33pm UTC](https://forums.unrealengine.com/t/how-to-detect-storm-damage-or-elimination-with-verse/1284245/3 "2023-09-05T22:33:53Z")

</div>

Yeah I’m not sure why it doesn’t return false, I guess the last player who damaged the player who died from the storm is set as the instigator.

You have to check who is the returned `EliminatingCharacter`, maybe it’s the player who died ?

---

<div class="post-metadata">

**Author:** ![GraemeBB](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/graemebb/32/1106150_2.png) [@GraemeBB](https://forums.unrealengine.com/u/GraemeBB)\
**Post date:** [September 5, 2023, 10:44pm UTC](https://forums.unrealengine.com/t/how-to-detect-storm-damage-or-elimination-with-verse/1284245/4 "2023-09-05T22:44:40Z")

</div>

I tried doing a comparison to see if it’s the same player but it didn’t come up equal, but you’re correct there is a score applied to the same character

---

<div class="post-metadata">

**Author:** ![im\_a\_lama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/im_a_lama/32/995063_2.png) [@im\_a\_lama](https://forums.unrealengine.com/u/im_a_lama)\
**Post date:** [September 5, 2023, 10:45pm UTC](https://forums.unrealengine.com/t/how-to-detect-storm-damage-or-elimination-with-verse/1284245/5 "2023-09-05T22:45:40Z")

</div>

If you’re the only player on the map it must be you, try applying an impulse or make the player Invisible / change health something so you know who is this player 🤷

---

<div class="post-metadata">

**Author:** ![GraemeBB](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/graemebb/32/1106150_2.png) [@GraemeBB](https://forums.unrealengine.com/u/GraemeBB)\
**Post date:** [September 5, 2023, 10:47pm UTC](https://forums.unrealengine.com/t/how-to-detect-storm-damage-or-elimination-with-verse/1284245/6 "2023-09-05T22:47:40Z")

</div>

There’s gotta be a way to get this accurately though

---

<div class="post-metadata">

**Author:** ![im\_a\_lama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/im_a_lama/32/995063_2.png) [@im\_a\_lama](https://forums.unrealengine.com/u/im_a_lama)\
**Post date:** [September 5, 2023, 11:01pm UTC](https://forums.unrealengine.com/t/how-to-detect-storm-damage-or-elimination-with-verse/1284245/7 "2023-09-05T23:01:16Z")

</div>

Well, you could try listening to this event :

```auto
    damageable<native><public> := interface<epic_internal>:

        # Signaled when damage is applied to the `damageable` object.
        DamagedEvent<public>():listenable(damage_result)

# Results for damage events on Fortnite objects.
    damage_result<native><public> := struct<epic_internal>:
        # Object that was damaged.
        Target<native><public>:damageable

        # Amount of damage applied to `Target`.
        Amount<native><public>:float

        # Player, agent, etc. that instigated the damage to `Target`. Can be false when damage is instigated by code, the environment, etc.
        Instigator<native><public>:?game_action_instigator = external {}

        # Player, weapon, vehicle, etc. that damaged `Target`. Can be false when damage is caused by code, the environment, etc.
        Source<native><public>:?game_action_causer = external {}

```

Basically every player has a fort\_character that is `damageable` so you can listen to this, but you’ll have to detect the death manually using some basic math. I’m not sure it works but you can try.

---

<div class="post-metadata">

**Author:** ![GraemeBB](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/graemebb/32/1106150_2.png) [@GraemeBB](https://forums.unrealengine.com/u/GraemeBB)\
**Post date:** [September 5, 2023, 11:10pm UTC](https://forums.unrealengine.com/t/how-to-detect-storm-damage-or-elimination-with-verse/1284245/8 "2023-09-05T23:10:18Z")

</div>

I’ve been working on this and I think maybe have a solution but am still only testing with one character. I rewrote my comparison code for character to character and if it’s the same character then I detect that it’s the storm that did it, or self elim.

I’ll let you know how it goes! Thanks for the help so far, I’d really like to not have to do this so hacky…

---

<div class="post-metadata">

**Author:** ![GraemeBB](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/graemebb/32/1106150_2.png) [@GraemeBB](https://forums.unrealengine.com/u/GraemeBB)\
**Post date:** [September 6, 2023, 12:51am UTC](https://forums.unrealengine.com/t/how-to-detect-storm-damage-or-elimination-with-verse/1284245/9 "2023-09-06T00:51:30Z")

</div>

Does this detect damage from other players? I can detect damage from storms and fall damage, but not other players so far. Just grabbing the Amount value from the damage\_result

---

<div class="post-metadata">

**Author:** ![im\_a\_lama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/im_a_lama/32/995063_2.png) [@im\_a\_lama](https://forums.unrealengine.com/u/im_a_lama)\
**Post date:** [September 6, 2023, 10:32am UTC](https://forums.unrealengine.com/t/how-to-detect-storm-damage-or-elimination-with-verse/1284245/10 "2023-09-06T10:32:09Z")

</div>

Ofc, try this :

```auto
if(InstigatorCharacter := fort_character[Instigator?], player[InstigatorCharacter.GetAgent[]]):
    # Killer is a player

```

---

<div class="post-metadata">

**Author:** ![GraemeBB](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/graemebb/32/1106150_2.png) [@GraemeBB](https://forums.unrealengine.com/u/GraemeBB)\
**Post date:** [September 6, 2023, 4:21pm UTC](https://forums.unrealengine.com/t/how-to-detect-storm-damage-or-elimination-with-verse/1284245/11 "2023-09-06T16:21:45Z")

</div>

I appreciate that, but it doesn’t work. Here is another post where I directly address this:

> [@Does the damage\_result instigator or source even work??](https://forums.unrealengine.com/t/does-the-damage-result-instigator-or-source-even-work/1284499):
>
> This is what is in the code for damage\_result damage\_result\<native\>\<public\> := struct\<epic\_internal\>: # Object that was damaged. Target\<native\>\<public\>:damageable # Amount of damage applied to `Target`. Amount\<native\>\<public\>:float # Player, agent, etc. that instigated the damage to `Target`. Can be false when damage is instigated by code, the environment, etc. Instigator\<native\>\<public\>:?game\_action\_instigator = external {} # Player, …

It seems that there is just nothing in the instigator or source
