I am trying to debug something in my map. I found some code to capture the moment the bug happens, but it is buried in some damage events. I want to use debug messages to output all the information for when it occurred (to help debug), but the damage event fires A LOT. The bug also seems to happen once and then happen more often after that first occurrence, so I don't want to just turn off the damage system or end the game or whatever.
What I want is to pause the game such that I can read debug messages and then have some way to unpause.
I think I can maybe just turn the damage system off and then have a command to turn it back on, but I think pausing the game would make it easiest to see stuff.
If it's not possible, I will settle for something else (ideas are welcome). Thanks in advance!
What I want is to pause the game such that I can read debug messages and then have some way to unpause.
I think I can maybe just turn the damage system off and then have a command to turn it back on, but I think pausing the game would make it easiest to see stuff.
If it's not possible, I will settle for something else (ideas are welcome). Thanks in advance!