I want to make an event where when the main character collides with an enemy it destroys it so I am trying the following:
Event if enemy A collides with hero
OR
Event if enemy B collides with hero
OR
Event if enemy C collides with hero
THEN store that enemy UID
Sub event if hero animation is "attack"
THEN pick and destroy that enemy using the stored UID.
Thing is I can't find any way to pick that enemy's UID generically (regardless of the type of enemy A, B or C) I know that this can be achieved by making separate events for each enemy, but I find that to be too redundant.
Any help will be greatly appreciated :D
Thanks in advance