How to make a key user-configurable

Post » Fri Jul 26, 2013 3:44 pm

Hi,

I wrote a script that uses OnKeyDown as a trigger. Currently I register for a key that I find convenient but I understand that others may prefer to change that key to something else. Can somebody shed some light on how to do that? Unless it's easier than any other available method I'd prefer to avoid setting a MCM menu just for one setting.

Thanks for any help.

User avatar
christelle047
 
Posts: 3407
Joined: Mon Apr 09, 2007 12:50 pm

Post » Fri Jul 26, 2013 2:23 pm

http://www.creationkit.com/GetNthKeyPressed_-_Input

In my current Mod, I am using this in conjunction with a Message to ask the Player to press the Key they want to use.

Something like...

Message.Show()MyKey = Input.GetNthKeyPressed(0)
User avatar
keri seymour
 
Posts: 3361
Joined: Thu Oct 19, 2006 4:09 am


Return to V - Skyrim