Unit within range - variable problem

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?
 

jackall

You can change this now in User CP.
Reaction score
37
afaik you can only use preset variables in that event
try this:
when the "hero1" unit is created make that trigger that creates the unit add Unit comes within ABCD range of (Last Created Unit)
 

NeuroToxin

New Member
Reaction score
46
afaik you can only use preset variables in that event
try this:
when the "hero1" unit is created make that trigger that creates the unit add Unit comes within ABCD range of (Last Created Unit)

Don't use unit within range, it doesn't work (Or never does for me), I usually just get units in a unit group every so often seconds around the unit.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top