Engine only stores instigator as lastEntityCausingDamage from getEntityInfo ignoring source so half of the damage source info is lost for Killed event handler.
Description
Description
Details
Details
- Severity
- None
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 10 x64
- Category
- Engine
Steps To Reproduce
- Launch attached mission
- Quickly shoot a tank in front of you in a front headlight
- Observe lastEntityCausingDamage having player unit
- Wait until tank explodes
- Check RPT for HandleDamage event logs before death, notice it includes both source and instigator (Offroad and unit)
- Check RPT for Killed event log, notice it only includes unit (damage instigator) as source and no instigator
Additional Information
Extra issue:
Observe HandleDamage event logs with FuelExplosionBig after death, they also use instigator unit as source, I think this should be changed to source being vehicle that explodes and instigator the unit that triggered the destruction and explosion.
Related Objects
Related Objects