This is crazy. I can't debug a black screen. How does one turn on the debugging console?
So I add this piece of code (which is initialized in the main function: level thread triggercheck()) and I get a black screen. Wtf is going on?
Code Snippet
Plaintext
function triggercheck(){ PowerActivated = false; padswitch = false;
while(!PowerActivated) {
AllClientsPrint("^6Stopping loop sound");
}
}
Assuming you are being serious about this,
What is is doing is making a loop where it keeps spamming a print constantly as long as the PowerActivated variable is not truewhich is most likely crashing your game as soon as it loads into the map.
Last Edit: November 05, 2016, 05:22:55 pm by reckfullies
What is is doing is making a loop where it keeps spamming a print constantly as long as the PowerActivated variable is not truewhich is most likely crashing your game as soon as it loads into the map.
Oh yeah, obviously. Idk how I let that slip. Anyway adding a delay stopped the crashing. Thanks mate!