You don't need plugins for this, just pass enemy.UID in the function parameter (say, param(0)), then in the function you do Pick object by unique ID = function.param(0)
So, I set the id to a variable when the enemy is hit, then in the On call function I put the hit enemy logic. Then I use a return function, right?