Difference between revisions of "RegisterForKey - ScriptObject"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Kyllagdrgn
(Created page with "Category:Scripting Category:Papyrus '''F4SE Member of:''' ScriptObject Script Minimum required F4SE Version: 0.3.0 Registers the given Input_Script#DXScanCodes...")
 
imported>Kyllagdrgn
Line 5: Line 5:
Minimum required F4SE Version: 0.3.0
Minimum required F4SE Version: 0.3.0


Registers the given [[Input_Script#DXScanCodes|DXScanCode]] for [[OnKeyDown - Form|OnKeyDown]] and [[OnKeyUp - Form|OnKeyUp]] events. (This function requires F4SE)
Registers the given [[Input_Script#DXScanCodes|DXScanCode]] for [[OnKeyDown - ScriptObject|OnKeyDown]] and [[OnKeyUp - ScriptObject|OnKeyUp]] events. (This function requires F4SE)


== Syntax ==
== Syntax ==
Line 24: Line 24:
*[[ScriptObject Script]]
*[[ScriptObject Script]]
*[[Input Script]]
*[[Input Script]]
*[[UnregisterForKey - Form]]
*[[UnregisterForKey - ScriptObject]]
*[[OnKeyDown - Form]]
*[[OnKeyDown - ScriptObject]]
*[[OnKeyUp - Form]]
*[[OnKeyUp - ScriptObject]]

Revision as of 21:13, 17 March 2017

F4SE Member of: ScriptObject Script

Minimum required F4SE Version: 0.3.0

Registers the given DXScanCode for OnKeyDown and OnKeyUp events. (This function requires F4SE)

Syntax

Function RegisterForKey(Int Key) Native

Parameters

Return Value

NONE

Examples

RegisterForKey(160) ; L-Shift

Notes

See Also