How do I make a button damage enemy AI?

How do I make a button that is on the User Interface deal damage to the enemy AI when it is pressed?

You would need a reference to the specific enemy you are trying to damage, a variable within that enemy to represent it’s health and when you press the button on the user interface it would have to take that reference get the enemy’s health and subtract whatever the damage amount is then set the health variable to the new value.

yup basically on event pressed on the button apply damage to a referenced actor. then on the actor you could use the event any damage then work in a health system from there