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

Pause/Unpause

Status
Not open for further replies.
Level 34
Joined
May 1, 2008
Messages
3,212
I need a little help with Pause and Unpause game triggers. I want to make it, when you press ESC, the game is paused, and when you press ESC again, the game is unpaused. I tried to do that, but then it pauses and unpauses in the same time so... no use for that... can anyone help me with this, how to make it NOT pause and unpause at the same time?
 

Yan

Yan

Level 6
Joined
Aug 20, 2009
Messages
142
You can do like this :
action : If the trigger execution egal to "odd number"
then : pause the game
else :
If the trigger execution egal to "even number"
then : unpause the game
else :
 
Level 4
Joined
Jul 19, 2007
Messages
76
  • Untitled Trigger 001
    • Events
      • Player - Player 1 (Red) skips a cinematic sequence
    • Conditions
    • Actions
      • Game - Pause the game
      • Wait 0.01 seconds
      • Trigger - Turn off (This trigger)
      • Trigger - Turn on Untitled Trigger 002 <gen>
  • Untitled Trigger 002
    • Events
      • Player - Player 1 (Red) skips a cinematic sequence
    • Conditions
    • Actions
      • Game - Unpause the game
      • Trigger - Turn off (This trigger)
      • Trigger - Turn on Untitled Trigger 001 <gen>
the easiest way,
on untitled trigger 002 remove tick from initially on
 
Level 34
Joined
May 1, 2008
Messages
3,212
Ah, nevermind, I got it! Lineze showed me how to! Thanks again Linaze! ^^ And you too, guys. :p

pauseunpauseworking.png
 
Status
Not open for further replies.
Top