• 🏆 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!

Unit Pause problem

Status
Not open for further replies.
Level 8
Joined
Dec 29, 2006
Messages
359
Im havin a hard time with a particular trigger.


  • Plaguecaster Ginka Stun
    • Events
      • Destructible - A destructible within Plaguecaster Ginka INIT <gen> dies
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Destructible-type of (Dying destructible)) Equal to Corruption Generator
        • Then - Actions
          • Unit - Pause Plaguecaster Ginka 0112 <gen>
          • Set GinkaStunned_Boolean = True
          • Wait 10.00 seconds
          • Unit - Unpause Plaguecaster Ginka 0112 <gen>
          • Set GinkaStunned_Boolean = False
        • Else - Actions
Plaguecaster Ginka is not being paused, he still moves as normal. Also this trigger still fires when i have GinkaStunned_Boolean set to true.

  • Plaguecaster Ginka Novas
    • Events
      • Time - Every (Random real number between 5.00 and 15.00) seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • GinkaStunned_Boolean Equal to False
        • Then - Actions
          • Advanced - Create a special effect circle around location (Position of Plaguecaster Ginka 0112 <gen>) with radius 250.00 with 12 effects in total using model path Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl and lasting 3.00 seconds
          • Unit Group - Pick every unit in (Units within 250.00 of (Position of Plaguecaster Ginka 0112 <gen>)) and do (Actions)
            • Loop - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Picked unit) Not equal to Plaguecaster Ginka 0112 <gen>
                • Then - Actions
                  • Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 150.00)
                • Else - Actions
                  • Do nothing
        • Else - Actions
          • Do nothing
Anybody have any idea whats going on? Thanks to all replies.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,201
Your triggers have some leaks, I recomend you fix them or they might increase/cause your map to lag lategame.

It should be paused, but the animations are not, it plays the standard stand animation.
To fix this use the action that changes animation rate, and set it to 0% (stopped).
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,201
Check the trigger is actually even firing. The fault may be at the origan.
Inother words, check that the event even triggers the trigger since maybe the trigger works fine but the even is not seeing the thing to trigger it is happening. You can use a message spawned to check this.
 
Status
Not open for further replies.
Top