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

Event Response - Ordered unit doesnt work on buildings?

Status
Not open for further replies.
Level 3
Joined
Jun 3, 2004
Messages
36
I have a TD were I wan't all my towers to be avaible to turn, but to make them turn they need atleast 1 movmentspeed as defult.
Therefor I added a trigger thats sets ther movmentspeed to 0 when they are constructed. The problem is that thy can still be ordered to move...
So I thought that if I tell them when they are ordered to target a point I order them to hold position, but it doesn't seems to work. I've tryed this before on common units and it works, but not when the units are buildings.
Here is the code:
Code:
    Events
        Unit - A unit Is issued an order targeting a point
    Conditions
        ((Ordered unit) is in ShortRangers) Equal to True
    Actions
        Unit - Order (Ordered unit) to Hold Position
        Game - Display to (All players) the text: dxgf

Are there anything wrong in the code, or is there a way around this? plz help.

Edit:
the game text message is not nessesary, I just used it to see if the events and conditions works, and it did.
 
Status
Not open for further replies.
Top