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

Detect when a unit is ordered to build, not when the build starts

Status
Not open for further replies.
Level 37
Joined
Mar 6, 2006
Messages
9,243
You can detect the orders with this trigger:

  • ISSUE ORDER
    • Events
      • Unit - A unit Is issued an order with no target
      • Unit - A unit Is issued an order targeting a point
      • Unit - A unit Is issued an order targeting an object
    • Conditions
    • Actions
      • Floating Text - Create floating text that reads (String((Issued order))) above (Triggering unit) with Z offset 64.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Floating Text - Set the velocity of (Last created floating text) to 100.00 towards 90.00 degrees
      • Floating Text - Change (Last created floating text): Disable permanence
      • Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
      • Floating Text - Change the fading age of (Last created floating text) to 1.70 seconds
Usually the order is kind of obvious, like "humanbarracks" or "blacksmith". ...targeting a point is the event that triggers when unitis ordered to build a building.
 
Status
Not open for further replies.
Top