How to communicate a blueprint for a unspecified target blueprint?

In the game I’m making I need to make units can kill enemies for upgrades, this requires designing a death event that increases the XP value of the enemy counterpart to the killer, but I’ve looked up blueprint communication tutorials on the internet and they don’t tell me how I’m going to use blueprint communication to an unspecified blueprint, the killer is an unspecified blueprint, it could be any unit with damage

I have the way to get the killer. But how to communicate the two blueprint? Killer and the unit be killed

  • a killer applies damage:

image

  • an enemy that gets damaged:


Ideally, you’d use an interface on top of that if you have a lot of different classes. And / or inheritance.

How do I add XP to a killer, I want to acquired XP of a killer and add it after modification, but I can’t get this through a get command because can’t acquired variable that not sure exists. Variables can be acquired must be necessarily exist

Give those actor classes XP int variables, accumulate it when the enemy gets Destroyed - as in the lat pic. The enemy will send the Damage Causer a message with the amount.