Hi there, what i'm trying to do is when a unit finishes building, i want to swap that unit to another unit.
What i have is this:
Is there any way for me to only replace *once* its order-queue is empty?
Alternatively, is there anyway for me to replace it only after its build menu is closed?
Thanks
What i have is this:
-
Events
- Unit - A unit Finishes casting an ability
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Unit-type of (Casting unit)) Equal to Tower Builder (Anti-Matter)
- (Unit-type of (Casting unit)) Equal to Tower Builder (Electricity)
- (Unit-type of (Casting unit)) Equal to Tower Builder (Gun)
- (Unit-type of (Casting unit)) Equal to Tower Builder (Siege)
-
Conditions
-
Or - Any (Conditions) are true
-
Actions
- Unit - Replace (Casting unit) with a Tower Builder using The new unit's default life and mana
- Set Builders[(Player number of (Owner of (Casting unit)))] = (Last replaced unit)
- Trigger - Run Check Abilities <gen> (ignoring conditions)
- Wait 0.05 seconds
- Selection - Select (Last replaced unit) for (Owner of (Last replaced unit))
Is there any way for me to only replace *once* its order-queue is empty?
Alternatively, is there anyway for me to replace it only after its build menu is closed?
Thanks