Background for Skyrim SE
Member of the DbMiscFunctions script
boolfunctionWaitWhileKeyIsPressed(intkeyCode, floatsecondsToWait)Global

Description

Documentation Comment

wait while the keyCode is pressed.
If the key is released before the secondsToWait time has elapsed, returns false.
If the secondsToWait time elapses and the keyCode is still pressed, returns true.
Requires skse


Caveats


Parameters

intkeyCode

floatsecondsToWait


Examples

Auto-Generated Example

int myInt__keyCode
float myFloat__secondsToWait

bool returnedValue = DbMiscFunctions.WaitWhileKeyIsPressed(myInt__keyCode, myFloat__secondsToWait)
Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.