Weapon with which the guard was killed

Using Guard Spawner and Trigger I got working code that triggers when guard was eliminated. So I got this far:
OnTriggered(Player: ?agent):void=
Print(“Killed by player”);
How do I detect the weapon that was used to kill guard?
I want to reward player with different stuff based on used weapon.

tracker_device

Thanks mate. I was hoping for some event data argument that I can rely on in my handler function, but after a few days of learning I realized that it’s all about devices in UEFN for now. I guess I just have to learn all devices and than figure out what kind of game logic do I want to make.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.