Page MenuHomeFeedback Tracker

OnPlayerDeath Event returns wrong Entities
Assigned, NormalPublic

Description

Hi,

as you can see in this screenshot, I kill an enemy US as USSR player, but the OnPlayerDeathWithParams Event returns both killer and victim as US.
This happens randomly in 1/5 cases, while it works correctly in the other.

Details

Severity
Major
Resolution
Open
Reproducibility
Random
Operating System
Windows 10 x64
Operating System Version
21H2
Category
General
Steps To Reproduce
  • Set up an invoker in your class for example Gamemode
  • insert the method from the screenshot via the invoker in each player/AI
  • go to play mode
  • kill player or AI
  • in some cases, the event will return the same entities for victim and killer, but in most it will work correctly
Additional Information

Expected:
The onPlayerDeathWithParams method should always be called with the killer AND victim entity

Actual:
The onPlayerDeathWithParams method is sometimes called with victim entity twice

Event Timeline

Geez changed the task status from New to Assigned.Jun 9 2022, 12:47 PM