Sorry I'm not at my computer right now. So I can't check what I'm saying.
It's not an action, it's a condition to reference the right object.
It might be a condition of the player object itself though..
player pick nearest to baddy.x, baddy.y
add that condition and the action will apply to that player..