"A unit comes withing X of (Unit)" Help

E

EmeraldDark

Guest
When you use the event A unit comes withing X of (Unit), you have to pick a unit on the map.

I need it to pick a unit that ISNT on the map on initialization. I was thiniking of using a unit-type variable, but it wont let you select that...

Any ideas on how i can do this?
 

Sim

Forum Administrator
Staff member
Reaction score
534
Code:
Add within range
   Events
      Unit - A unit enters (Entire map)
   Conditions
      ((Entering unit) Is THE UNIT_TYPE YOU SEEK, or IS A HERO, blablabla) Equal to True
   Actions
      Trigger - Add to Within range <gen> the event (Unit - A unit comes within x of (Entering unit))

There, but there is a little problem. Unless you keep that (Entering unit) into a variable you can't use a function to get it back. In the trigger "Within range" the (Triggering unit) will be the unit coming into range, not the above unit I added to the event. And there are no functions to get "(Range-entering unit)" or whatever.
 
D

Down

Guest
event a unit is issued a order Targeting a object
event a unit is issued a order Targeting a point

Pick all units within X Of Triggering Unit and do actions
+(add unit to a varible or just run it as is)

( dont think u can enter the entire map unless you are being trained)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top