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

Little triggery problem with orders.

Status
Not open for further replies.
Level 14
Joined
Aug 8, 2010
Messages
1,022
Yo, wazzup, hivers! It's a simple question : why this doesn't work?
  • CreepsStopAttack
    • Events
      • Unit - A unit Is issued an order targeting an object
    • Conditions
      • (Unit-type of (Target unit of issued order)) Equal to Wolf (Level 1)
    • Actions
      • Unit - Order (Ordered unit) to Stop
I want when a unit tries to attack this Wolf unit, the attacking unit to stop. I want this to stop both intentional and unintentional attack orders. I mean, both when you right click and when the unit attacks by it's self.
 
Level 7
Joined
Jan 30, 2011
Messages
267
"issued order" event only triggers when the player tells a unit to do something
autoattack doesnt trigger it
use the event "unit is being attacked"
 
Level 7
Joined
Jan 30, 2011
Messages
267
Nope. Unit is attacked fires when the attacking unit finishes his/her animation thus it can easily be abused by using stop.

it fires when it BEGINS the animation, not when it finishes


Unit is attacked event will stop the attacking unit right after it deals damage... i want to stop it before it deals damage.

it fires before it deals damage, even if animaton damagepoint is set to 0.00
 
Level 7
Joined
Jan 30, 2011
Messages
267
so just do it like this:

  • Events:
  • A unit is being attacked
  • Conditions:
  • Unittype of (Triggering Unit) is equal Wolf level 1
  • Actions:
  • Order (Attacking Unit) to stop
 
Status
Not open for further replies.
Top