Make unit unable to receive orders for a short duration

Wratox1

Member
Reaction score
22
As the title says, how do i make a unit unable to receive orders for a short duration with triggers?

Edit: oh, i forgot, i need to unit to be unable to recieve orders from the user, but not via triggers.
 

Dave312

Censored for your safe viewing
Reaction score
269
There is this action, but I'm unsure if it will still allow orders via triggers.
Code:
Make Unit Uncommandable
 

Wratox1

Member
Reaction score
22
There is this action, but I'm unsure if it will still allow orders via triggers.
Code:
Make Unit Uncommandable

thanks, it worked, but i had to make it so that you can not cancel the process once you've activated the ability, maybe i will fix that later..

i will post my trigger so that others can see how this is done.

Trigger:
  • Land Commandcenter
    • Events
      • Unit - Any Unit uses Command Center - Land (Terran Buildings) at Generic1 - Any stage (Ignore shared abilities)
    • Local Variables
      • position = (Triggering ability target point) <Point>
      • TriggeringUnit = (Triggering unit) <Unit>
    • Conditions
    • Actions
      • Trigger - Turn (Current trigger) Off
      • Unit - Order TriggeringUnit to (Command Center - Lift Off (Terran Buildings)) (Before Existing Orders)
      • Unit - Make TriggeringUnit Uncommandable
      • General - Wait 1.5 Game Time seconds
      • Unit - Order TriggeringUnit to (Command Center - Land (Terran Buildings) targeting position) (After Existing Orders)
      • General - Wait for (Conditions), checking every 1.0 Game Time seconds
        • Conditions
          • (Height of TriggeringUnit) == 0.0
      • Unit - Make TriggeringUnit Commandable
      • Trigger - Turn (Current trigger) On
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top