Trigger for runaway unit

G

Gyldenglad

Guest
Hey,

I'm looking for a trigger that will activate whenever a unit gets near another unit. This unit have to run away in a route that makes sense.
I need this for a surround training map. Right now I'm using regions, but sometimes the regions is a bad selection, making the fleeing unit running right towards you.

Can anyone help me with this?
 

Vylatin

New Member
Reaction score
32
Events
Every 0.3 second of game time

Actions
Pick all units within "range" of "unit" and do actions


Is this what you were looking for?
 
G

Gyldenglad

Guest
Let me make it more precise:

Theres an archmage that I approach from the right, it is obvious that the archmage would like to run to the left to avoid me. How can I make the archmage recognize what way to run?
 

Vylatin

New Member
Reaction score
32
I am not very experienced in this area but maybe something like this:

Events
Every 0.3 of game time

Actions
Pick all units at position of "unit" offset XXX blabla towards XXX etc.

If
picked unit equal to an enemy unit of "Avoiding unit".

Then
Order "Avoiding unit" to move XXX

But as I said, i am not experienced in this area. So don't zomg me if i am wrong x)
 

cleeezzz

The Undead Ranger.
Reaction score
268
take the angle from the position of Unit to position of Archmage, then order the archmage to move to position of archmage offset by 500 (distance) at x degrees (x was the angle from position of unit to position of archmage)
 
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