Background for Skyrim SE
Member of the DbMiscFunctions script
boolfunctionWaitWhileKeyIsPressed_interval(intkeyCode, intwaitCount, floatwaitInterval=0.01)Global

Description

Documentation Comment

Like WaitWhileKeyIsPressed but this is an interval wait version.
Wait while the keyCode is pressed.
Returns true if the entire waitCount finishes.
Returns false if the key was released before the waitCount is finished.
The wait interval should be a small value (default is 0.01) for this function to be accurate.
Requires skse


Caveats


Parameters

intkeyCode

intwaitCount

floatwaitInterval=0.01


Examples

Auto-Generated Example

int myInt__keyCode
int myInt__waitCount
float myFloat__waitInterval

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