if(unit1.GetBusy() == 0) { //Unit is doing nothing } else { //Unit is Moving or it does something else }
(Just a guess)
Title: Is Unit Unit1 Doing Something Or Not?
Post by: Hidiot on May 25, 2010, 12:26:18 PM
Well, if you have commands.h, which comes with IUnit.h, you will have a list of all currently known (probably all) unit/building commands. Unit.GetBusy() will return one of those commands, and you can write ifs or switches to use the info retrieved.
Title: Is Unit Unit1 Doing Something Or Not?
Post by: Flashy on May 25, 2010, 01:06:59 PM
Thanks. That was the last part of my evacuation transport code. Now version 0.10 is finally ready.