OnControlUp - Form

From the CreationKit Wiki
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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.

See Also