[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 64
Joined
Jan 18, 2005
Messages
27,284
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