Editing ScriptObject Script
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
[[Category:Scripting]] | |||
[[Category:Papyrus]] | |||
[[Category:Script Objects]] | |||
'''Extends:''' None | '''Extends:''' None | ||
Line 135: | Line 139: | ||
== F4SE Member Functions == | == F4SE Member Functions == | ||
*[[ | *[[RegisterForKey - ScriptObject|RegisterForKey]](Int ''key'')''' | ||
**Registers for | **Registers the given [[Input_Script#DXScanCodes|DXScanCode]] for OnKeyDown and OnKeyUp events. | ||
*[[UnregisterForKey - ScriptObject|UnregisterForKey]](Int ''key'')''' | |||
*[[RegisterForControl - ScriptObject|RegisterForControl]]( | **Unregisters the given [[Input_Script#DXScanCodes|DXScanCode]] for OnKeyDown and OnKeyUp events. | ||
*[[RegisterForControl - ScriptObject|RegisterForControl]](String ''control'')''' | |||
**Registers the given control for OnControlDown and OnControlUp events. | **Registers the given control for OnControlDown and OnControlUp events. | ||
*[[UnregisterForControl - Form|UnregisterForControl]](String ''control'')''' | |||
*[[UnregisterForControl - | |||
**Unregisters the given control for OnControlDown and OnControlUp events. | **Unregisters the given control for OnControlDown and OnControlUp events. | ||
== Events == | == Events == | ||
Line 214: | Line 197: | ||
== F4SE Events == | == F4SE Events == | ||
*[[ | *[[OnKeyDown - Form|OnKeyDown]](Int ''keyCode'')''' | ||
**Received when | **Received when key(s) registered via [[RegisterForKey - Form|RegisterForKey]] are pressed. | ||
*[[OnKeyUp - Form|OnKeyUp]](Int ''keyCode'', Float ''holdTime'')''' | |||
*[[ | **Received when key(s) registered via [[RegisterForKey - Form|RegisterForKey]] are released. | ||
**Received when | *[[OnControlDown - Form|OnControlDown]](String ''control'')''' | ||
**Received when control(s) registered via [[RegisterForControl - Form|RegisterForControl]] are pressed. | |||
*[[ | *[[OnControlUp - Form|OnControlUp]](String ''control'', Float ''holdTime'')''' | ||
**Received when | **Received when control(s) registered via [[RegisterForControl - Form|RegisterForControl]] are released. | ||
*[[ | |||
**Received when | |||