• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] unit without and order?

Status
Not open for further replies.
Level 23
Joined
Apr 16, 2012
Messages
4,041
you could check it either by checking the order of unit(unit should have order Attack if the unit acquired target) or you could just check if there are any enemy units(by Unit Group) in some range(Unit Acquisition range for instance) and if there are no enemies or its order is not Attack(its either Move or Stop, because he could be casting spells), order the unit to move somewhere
 
Level 23
Joined
Apr 16, 2012
Messages
4,041
well you could just check if units current order is stop(he is not performing any other order such as attacking other units, following other units, moving to some place or casting spells) you order it to move somewhere
 
Status
Not open for further replies.
Top