Background for Fallout 4
Member of the ScriptObject script
voidfunctionRegisterForKey(intkey)Native

Description

Wiki Description

Registers the given Scan Code for OnKeyDown and OnKeyUp events.

Documentation Comment

F4SE additions built 2025-11-11 02:05:33.464000 UTC


Caveats

CK Wiki - Notes

None


Parameters

  1. intkey

    CK Wiki Description

    The Scan Code of the key to listen for.


Examples

RegisterForKey(160) ; left shift

Auto-Generated Example

int myInt__key

myScriptObject__toCallFunctionOn.RegisterForKey(myInt__key)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.