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

[Need Info] Unit Order Index

Status
Not open for further replies.
Level 8
Joined
Oct 2, 2013
Messages
288
So I was looking to make a simple condition that detected if a unit was not attacking a specific unit.

  • ((Picked unit) order at index 0) != ( Attack targeting gold mine)
And I noticed this "Index" option which I don't recognize from wc3.
What does the index mean?


Thanks in advance!
 

Dr Super Good

Spell Reviewer
Level 65
Joined
Jan 18, 2005
Messages
27,290
What does the index mean?
The queue position of the order you want.

This gives support for dealing with units that have multiple orders queued. In game you queue orders by holding the Shift key while issuing orders. WC3 supported order queueing but lacked trigger natives to deal with it very well as it could only get the current order for a unit (the order the unit is currently doing).
 
Status
Not open for further replies.
Top