• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

How To Order Unit To Cancel Construction ?

Status
Not open for further replies.
Check if your action works before you post it here

first of all...i thing its not so simple


ordering unit to stop does not work

and i think "builder" does not exist at all

killing a structure is not canceling

Stop order only work if you have a preset unit or variable.
"Builder" doesnt exist, i just picked a unit and renamed it.
What do you mean with canceling then?
 
I think he means that the building is still standing but its not being build or something
Btw stop would work , just select the unit u would like to stop
 
just use Unit - Order (your unit) to stop
i mean-if you order the the structure that is in construction to stop it will not do anything

here is what i need to do.....

in some seconds of the game

some structure will be in construction

but i do not want it to be finished

now i want to cancel construction
(like when player selects the structure and presses ESC)

i want to order the structure that is on construction to cancel itself...
 
Try to see what order happens when you press it by yourself...

I think this should do the job:
  • Define Order
    • Events
      • Unit - A unit Is issued an order targeting an object
      • Unit - A unit Is issued an order targeting a point
      • Unit - A unit Is issued an order with no target
    • Conditions
    • Actions
      • Game - Display to (All players) the text: (String((Issued order)))
It should display the order that is given...
 
Try to see what order happens when you press it by yourself...

I think this should do the job:
  • Define Order
    • Events
      • Unit - A unit Is issued an order targeting an object
      • Unit - A unit Is issued an order targeting a point
      • Unit - A unit Is issued an order with no target
    • Conditions
    • Actions
      • Game - Display to (All players) the text: (String((Issued order)))
It should display the order that is given...
yes it should but its not showing anything when i cancel construction
 
JASS:
call IssueImmediateOrderById(GetTriggerUnit(), 851976)

To get the order IDs:

  • Order
    • Events
      • Unit - A unit Is issued an order targeting an object
      • Unit - A unit Is issued an order targeting a point
      • Unit - A unit Is issued an order with no target
    • Conditions
    • Actions
      • Game - Display to (All players) for 30.00 seconds the text: (Order string: + (String((Issued order))))
      • Custom script: call DisplayTimedTextToForce( GetPlayersAll(), 30, ( "Order Id: " + I2S(GetIssuedOrderId()) ) )
 
JASS:
call IssueImmediateOrderById(GetTriggerUnit(), 851976)



that is the correct order to order a unit to cancel
there is one problem
i need to use waits/timers if i want this trigger to work

  • Untitled Trigger 001
    • Events
      • Unit - A unit Begins construction
    • Conditions
    • Actions
      • (wait or start timer and than do this action in trigger that has event of the expiring timer)
      • Custom script: call IssueImmediateOrderById(GetTriggerUnit(), 851976)
 
Last edited:
Status
Not open for further replies.
Back
Top