condition - unit is moving?

Grymlax

Probably not around
Reaction score
138
is there anyway to determine whether or not a unit is moving?

thx in in advance
/Grymlax
 

Exide

I am amazingly focused right now!
Reaction score
448
>A unit is issued an order
>Order equal to Move
>
>That maybe?

Aye, that works.
You should probably include orders such as attack, incase the unit attacks another unit and moves in to fight.

You can also use another one, that checks distance between points.

Code:
(Distance between (Position of (Triggering unit)) and (Position of (Triggering unit))) Greater than or equal to 1.00

More complicated, though.
 

Grymlax

Probably not around
Reaction score
138
thx guys i think i will go with chovynz condition it works best in my trigger.
 

Slapshot136

Divide et impera
Reaction score
471
there isnt really cuz u can be attacking or chaseing with the same order, the best was i think would 2 store it's location in a var and then compare where it is 2 the var every like .1 seconds...
 

Grymlax

Probably not around
Reaction score
138
now i have decieded to go with exides condition insted
Code:
(Distance between (Position of (Triggering unit)) and (Position of (Triggering unit))) Greater than or equal to 1.00
i only need to remake it a little
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
888
Movement can be checked with a current order comparison like so:

Code:
Or - Any (Conditions) are true
    Conditions
        (Current order of (Triggering unit)) Equal to (Order(smart))
        (Current order of (Triggering unit)) Equal to (Order(move))

However, this will not detect attack-moving. To do that, add a line:

Code:
Or - Any (Conditions) are true
    Conditions
        (Current order of (Triggering unit)) Equal to (Order(smart))
        (Current order of (Triggering unit)) Equal to (Order(move))
        (Current order of (Triggering unit)) Equal to (Order(attack))

But then it will also detect when a unit is simply standing still attacking something.
 

Exide

I am amazingly focused right now!
Reaction score
448
You need to remake it more than that.
It leaks points, so you better store those in variables.
Then check every 2 seconds, set the first point variable, wait 1 second, set the second point variable and then compare.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top