Is there a way to temporarily prevent the player from opening the "Wait" dialog or the journal ("J" by default)?
I tried
Game.disablePlayerControls(true, true, true, false, true, true, true, true, 0)
But it doesn't disable those keys.
Hi,
I'm looking at an old mod that allows playing instruments by playing a sound when you press a key on the keyboard. It has pieces of code that looks like this:
I'm new to papyrus scripting, but my understanding of RegisterForSingleUpdate is that it will cause the OnUpdate event to be called after the specified time. However this script has no OnUpdate event. I was also getting errors in the log coming from the RegisterForSingleUpdate calls ("Object reference has no 3D" and "no native object bound to the script object, or object is of incorrect type"). I tried commenting out all of the calls and the mod still works fine as far as I can tell.
So I'm wondering if there's any reason to have those in there. Trying to understand why the original mod author might have done it this way.