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

Pause/Unpause

Status
Not open for further replies.
Level 34
Joined
May 1, 2008
Messages
3,213
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,213
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