Difference between revisions of "OnControlUp - Form"

From the CreationKit Wiki
Jump to navigation Jump to search
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...")
 
imported>Terra Nova
(Added new section. Maybe helpful to those who don't know that this list is in the Input.psc)
Line 24: Line 24:
EndEvent
EndEvent
</source>
</source>
 
== Control Strings ==
*This is a list of the valid control strings the event will accept.
<source lang="html4strict">
"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"
</source>
== Notes ==
== 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.
*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.

Revision as of 02:07, 25 December 2013

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

Control Strings

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

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