I can create an Action with parameters using an Actiondefintion.
But how can I create an Eventdefinition ? I'd like to make an Event that is 'called' when a Unit, that is saved in a variable, dies. Like an Event called 'My unit dies'.
The desired behavior is the following:
- Called when a unit defined in a variable dies
- the deceased unit should be returned by 'Triggering Unit()'
- the owning player of the deceased unit should be returned by 'Triggering Player()'
I hope you get my point, Thanks