Currently, when you call an event, a varoable for that event will switch to true and a draw loop will be activated for that variable.
After that, we start a new thread, wait for the seconds to pass and then will set the initial variable back to false, closing the draw loop.
While this does get the job done, calling the same event in that timeframe will break the scaleform, since the event will generate another thread, with another timer, while the first one is still active, causing the new scaleform to close before completion.
The new system will need to check for scaleforms already active.
Currently, when you call an event, a varoable for that event will switch to true and a draw loop will be activated for that variable.
After that, we start a new thread, wait for the seconds to pass and then will set the initial variable back to false, closing the draw loop.
While this does get the job done, calling the same event in that timeframe will break the scaleform, since the event will generate another thread, with another timer, while the first one is still active, causing the new scaleform to close before completion.
The new system will need to check for scaleforms already active.