Announcement

Collapse
No announcement yet.

Detect if map is in the process of closing down?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • replied
    I've just seen that there is a GameEnding() event in GameInfo.

    Leave a comment:


  • started a topic Detect if map is in the process of closing down?

    Detect if map is in the process of closing down?

    When you run "open someMap" the game goes through an destroys all actors on the current map.

    This causes pawns to call DetachFromController(), which in turn results in the Controller calling PawnDied(). I use PawnDied() to capture stats about the number of deaths etc.

    Is there a way to know that the current map is in the process of closing down, so i can avoid running unnecessary logic?
Working...
X