OnControlUp - Form
Revision as of 04:47, 1 June 2013 by imported>Bot Owned (Created page with "Category:Scripting Category:Papyrus Category:SKSE '''SKSE Member of:''' Form Script Listens for the release of game controls that have been registered via R...")
SKSE Member of: Form Script
Listens for the release of game controls that have been registered via RegisterForControl.
Syntax
Event OnControlUp(sting control, float HoldTime)
EndEvent
Parameters
- control: The control press.
- HoldTime: The hold time of the control in seconds.
Examples
Event OnControlUp(string control, float HoldTime)
If control == "Forward"
Debug.Trace("The Forward control was released after" + HoldTime + " seconds.")
EndIf
EndEvent
Notes
- If multiple controls are registered, you'll want to differentiate in the event body as demonstrated above. If only one key will be registered for the form, such differentiation is not necessary.