• 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.

Order Smart's many uses

Status
Not open for further replies.
Okay, so I need to figure out how to differentiate between the various uses of Smart. If you right-click on anything, the GetUnitCurrentOrder() returns smart, regardless of if it's an enemy, an ally or a point and said target is being followed/attacked/moved to. Is there a way, using GetUnitCurrentOrder(), to find out which variant or smart my unit has? I'm trying to avoid having to catch it with an event and storing the GetOrderTargetUnit() into a variable for reference later on.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,287
I'm trying to avoid having to catch it with an event and storing the GetOrderTargetUnit() into a variable for reference later on.
This is probably the only way unfortunately. WC3 lacks order queue natives like StarCraft II has which lets you get the target and target type for any queued orders.
 
Status
Not open for further replies.
Top