Identifying CURRENT PLAYER Kill_Feed

HI,

am using killfeed event for both cs:go and valorant, am getting all players kill_feed but i need only current player kill feed. even i tried to use after kill also, any other solutions for this

Hi!
For both of these, the best course of action would simply be to filter the events in the app, based on the killer in the events.
More specifically, for cs:
If you use kill_feed, you’ll note that every kill feed event has an attacker field. If you then compare that to the local player’s name, you’ll be able to infer whether or not this event occurred for the local player.

For valorant:
If you use kill_feed, you’ll note that every kill feed update comes with an attacker field here as well. You can then compare that. However, do note that with valorant, user names have a few more complications due to privacy settings/double names, so keep an eye out for that.

Hope that helps!

1 Like