How to distinguish whether in game or in replay?

trb92

Throwing science at the wall to see what sticks
Reaction score
142
PandaMine has a script to do that at one time over on wc3c. Apparently, it should work. It's in vJass, so you'll need JNGP to use it.
 

Azlier

Old World Ghost
Reaction score
461
To use that, make a boolean variable named IsInGame. Then, add this action to your Map Initialization trigger.
Trigger:
  • Your Trigger?
    • Custom Script: set udg_IsInGame = IsInGame()


Then you can use it in triggers. If it's true, it's in game. If not, it's a replay.


>Impossible.
Very quick to dismiss something as impossible, are we?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top