• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Disabling Raise Dead Autocast

Status
Not open for further replies.
Level 4
Joined
Jan 27, 2008
Messages
72
Why doesn't this work?

  • Autocast Disabler
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Issued order) Equal to (Order(raisedeadon))
    • Actions
      • Custom script: call IssueImmediateOrder (GetTriggerUnit(), "raisedeadoff")
Trying to disable autocasting when it comes to raise dead, and this trigger doesn't seem to work for some reason.
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
I think it happens because the order is detected in the triggering before it takes effect, so the trigger disables the ability before your actual order takes place in activating it.

Try using a 0.03 timer or wait before the disabling thing.
 
Level 4
Joined
Jan 27, 2008
Messages
72
I think it happens because the order is detected in the triggering before it takes effect, so the trigger disables the ability before your actual order takes place in activating it.

Try using a 0.03 timer or wait before the disabling thing.

This seems to be right. It works after adding a wait before turning the autocast off.

Thanks~
 
Status
Not open for further replies.
Top