Solved! You can give the unit it's "smart command", the thing it does on a right click by using
Unit - Order (Closest unit to (Position of (Triggering progress unit)) in
(Units in idleSCVs owned by player 1, with at most 1)) to
(Smart Command targeting (Triggering progress unit)) (Replace Existing Orders)
You can read my post if you like though ;P
Hello everybody! :)
I'm trying to create a map where you control a base but can't directly order your units (think Majesty)
I've figured out how to drop a barracks that stops its own construction and I can place it anywhere, now I want to order one of my idle SCVs to run over there and resume the construction.
Here is my lovely little trigger, but I can't figure out what order to give the SCV to make him resume his duties to the emperor.
Command center places the building, which is halted.
Triggering Progress Unit is the Barracks
If I give any other order (Move to point etc...) they work correctly, I just don't know what order to give :(
On Construction
Events
Unit - Any Unit construction progress is Started
Unit - Any Unit construction progress is Resumed
Local Variables
Conditions
(Unit type of (Triggering unit)) == Command Center
Actions
Unit - Order (Triggering unit) to ( Cancel) (Replace Existing Orders)
Unit - Order (Closest unit to (Position of (Triggering progress unit)) in (Units in idleSCVs owned by player 1, with at most 1)) to (SCV - Build Refinery targeting (Triggering progress unit)) (Replace Existing Orders)
Solved! You can give the unit it's "smart command", the thing it does on a right click by using
Unit - Order (Closest unit to (Position of (Triggering progress unit)) in (Units in idleSCVs owned by player 1, with at most 1)) to (Smart Command targeting (Triggering progress unit)) (Replace Existing Orders)
You can read my post if you like though ;P
Hello everybody! :)
I'm trying to create a map where you control a base but can't directly order your units (think Majesty)
I've figured out how to drop a barracks that stops its own construction and I can place it anywhere, now I want to order one of my idle SCVs to run over there and resume the construction.
Here is my lovely little trigger, but I can't figure out what order to give the SCV to make him resume his duties to the emperor.
Command center places the building, which is halted. Triggering Progress Unit is the Barracks If I give any other order (Move to point etc...) they work correctly, I just don't know what order to give :(
On Construction
Events
Unit - Any Unit construction progress is Started
Unit - Any Unit construction progress is Resumed
Local Variables
Conditions
(Unit type of (Triggering unit)) == Command Center
Actions
Unit - Order (Triggering unit) to ( Cancel) (Replace Existing Orders)
Unit - Order (Closest unit to (Position of (Triggering progress unit)) in (Units in idleSCVs owned by player 1, with at most 1)) to (SCV - Build Refinery targeting (Triggering progress unit)) (Replace Existing Orders)
Thanks in advance
Andy