In the docs it says that in the elimination_result:
# 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…
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
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
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.
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…
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