How do you go about geting the AutoTurret that killed you OnPlayerDeath? seem to be stuck on this one...
Get AutoTurret from hitInfo?
After some digging in the code here is how.
if (info?.Weapon != null)
Owner = info?.Weapon?.GetParentEntity();
if (Owner)
{
if (debug) PrintWarning("Owner The Entity ShortName is : " + Owner.ShortPrefabName);
} I don't know about the coding, but in case you didn't know, currently turret deaths are "returning null" since the turret update.
https://umod.org/community/death-notes/18895-not-showing-kills-by-turrets
https://umod.org/community/death-notes/18895-not-showing-kills-by-turrets
this seems to work to get the turret from the Hitinfo.
Merged post
Tested and working decomplied and looked at how ya had to do it now.
Merged post
Tested and working decomplied and looked at how ya had to do it now.
Perhaps you could post your findings on that thread so that the Death Notes maintainer sees it and can fix the plugin for us plebs who don't have a clue about the coding :)