Jump to content

Skyrim Scripting Help


Recommended Posts

Can someone explain as if you were talking to an idiot why its not detecting key presses with this script ;-;

Scriptname Mynewscript extends Quest

Actor Property PlayerRef Auto

Event OnInit()
Debug.Notification("Looking for keys...")
RegisterForKey(58) ;CapsLock
EndEvent


Event OnKeyDown(Int KeyCode)
    Debug.notification("A registered key has been pressed")
    If KeyCode == 58
        Debug.notification("Caps lock is registered and has been pressed")
    EndIf
EndEvent
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...