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

Detecting if game is paused?

Status
Not open for further replies.
Level 4
Joined
Feb 2, 2009
Messages
71
I don't think so.
Why do you need to detect if game is paused?
No triggers can run while the game is paused.

What you should be looking for is detecting if the game is UNpaused,
but I don't think there's such event either.
 
Level 3
Joined
Dec 14, 2008
Messages
41
My problem is that i have some triggers that work even if the game is pause, and it gets bugged if it does. The triggers are -swap -repick, when this two are used during a pause game they get bugged.
 
Level 2
Joined
Mar 25, 2009
Messages
13
I don't know if there is a specific check to see if the game is paused, but you might try having a dummy unit somewhere, and whenever a player used one of your commands, then you'd have the trigger deal the unit a small amount of damage and then check if the dummy unit actually lost health (I'm pretty sure that damage can't go through while the game is paused). If the unit didn't lose health, the game is probably paused.
 
Last edited:
Status
Not open for further replies.
Top