• 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.

How To Order Unit To Cancel Construction ?

Status
Not open for further replies.
Level 3
Joined
Oct 9, 2008
Messages
61
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?
 
Level 2
Joined
Sep 12, 2009
Messages
16
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
 
Level 14
Joined
Mar 4, 2009
Messages
1,156
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...
 
Level 19
Joined
Feb 25, 2009
Messages
2,004
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...
 
Level 14
Joined
Mar 4, 2009
Messages
1,156
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()) ) )
 
Level 14
Joined
Mar 4, 2009
Messages
1,156
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.
Top