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

[Solved] This somehow crashes the game.

Status
Not open for further replies.
If you say so.

  • Uncontrollable Footman
    • 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
      • (Unit-type of (Triggering unit)) Equal to (==) Man of Foot
    • Actions
      • Trigger - Turn off (This trigger)
      • Unit - Order (Triggering unit) to Stop
      • Trigger - Turn on (This trigger)
 
At first it looked like it works. But then i tested the footman while he's in combat. All it takes is one player command and he's paused for eternity.

  • Uncontrollable Footman
    • 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
      • (Unit-type of (Triggering unit)) Equal to (==) Man of Foot
    • Actions
      • Trigger - Turn off (This trigger)
      • Unit - Pause (Triggering unit)
      • Unit - Order (Triggering unit) to Stop
      • Unit - Unpause (Triggering unit)
      • Trigger - Turn on (This trigger)
 
What does it mean with player command?

But hm, maybe.. what's the exact goal? It looks like you want prevent all units of type "Man of Foot" from making any orders, and just always stop. So they will never be able to move.

Player command = any orders such as move,patrol,attack,stop and cast spells made by the unit's player

I'm actually trying to make a unit that is selectable, owned by their player but cannot be directly controlled.

Maybe add a condition Order is not "Stop". If you add that condition then you do not even have to turn off the trigger.

That works :p
 
So, the reason why the footman's not stopping is because it's classified as a Ward?

EDIT: OK, Nevermind guys. I got it working now. Thanks for trying to help anyway :)
  • Uncontrollable Footman
    • Events
      • Unit - A unit Is issued an order targeting an object
      • Unit - A unit Is issued an order targeting a point
    • Conditions
      • Multiple ConditionsAnd - All (Conditions) are true
        • Conditions
          • (Unit-type of (Triggering unit)) Equal to (==) Man of Foot
          • ((Triggering unit) is paused) Equal to (==) False
    • Actions
      • Unit - Pause (Triggering unit)
      • Unit - Order (Triggering unit) to Stop
      • Unit - Unpause (Triggering unit)
 
Last edited:
Status
Not open for further replies.
Top