Randor244
Active Member
- Reaction score
- 34
I'm having some problems with the Unit within Range event - I'm trying to start a certain action when an enemy hero gets close to my main hero with the variable hero1.
The problem is, I cannot find a way to use a variable in the Unit - Unit within Range event.
Right now my trigger looks like this:
Events
Unit - A unit comes within 256.00 of No unit
Conditions
(((Triggering unit) is A Hero) Equal to True) and (((Triggering unit) belongs to an enemy of (Owner of hero1)) Equal to True)
Actions
Naturally, I want "No unit" in the event to be the variable hero1. But it is not in the list when I edit the event, all I get is the "select unit" button, and a list of units present on the map.
Does anyone have an idea of how to fix this?
The problem is, I cannot find a way to use a variable in the Unit - Unit within Range event.
Right now my trigger looks like this:
Events
Unit - A unit comes within 256.00 of No unit
Conditions
(((Triggering unit) is A Hero) Equal to True) and (((Triggering unit) belongs to an enemy of (Owner of hero1)) Equal to True)
Actions
Naturally, I want "No unit" in the event to be the variable hero1. But it is not in the list when I edit the event, all I get is the "select unit" button, and a list of units present on the map.
Does anyone have an idea of how to fix this?