OnControlUp - Form

Revision as of 05:30, 22 February 2016 by imported>Scrivener07
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

SKSE Member of: Form Script

Listens for the release of game controls that have been registered via RegisterForControl.

SyntaxEdit

Event OnControlUp(string control, float HoldTime)
EndEvent

ParametersEdit

  • control: The control press.
  • HoldTime: The hold time of the control in seconds.

ExamplesEdit

Event OnControlUp(string control, float HoldTime)
	If control == "Forward"
		Debug.Trace("The Forward control was released after" + HoldTime + " seconds.")
	EndIf
EndEvent

Control StringsEdit

  • This is a list of the valid control strings the event will accept.
"Forward", "Back", "Strafe Left", "Strafe Right", "Move", "Look", "Left Attack/Block", "Right Attack/Block"
"Activate", "Ready Weapon", "Tween Menu", "Toggle POV", "Zoom Out", "Zoom In", "Jump", "Sprint", "Shout",
"Sneak", "Run", "Toggle Always Run", "Auto-Move", "Favorites", "Hotkey1", "Hotkey2", "Hotkey3", "Hotkey4",
"Hotkey5", "Hotkey6", "Hotkey7", "Hotkey8", "Quicksave", "Quickload", "Wait", "Journal", "Pause", "Screenshot",
"Multi-Screenshot", "Console", "CameraPath", "Quick Inventory", "Quick Magic", "Quick Stats", "Quick Map"

NotesEdit

  • 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 AlsoEdit