Jump to content

Turn left/right, look up/down using keyboard


raathil

Recommended Posts

Having to use the mouse all the time is pretty rough on the wrist. I'd like to be able to move and look around using the keyboard exclusively, but the .ini file only allows you to change these functions for a joystick. Is there any way to enable the functionality I'm looking for using a mod?
Link to comment
Share on other sites

  • 7 months later...

I've looked and looked for just such a mod, and haven't found one. If anyone could make one and/or link to one that already exists, that would be greatly appreciated. I know Windows XP has accessability controls that let you move the mouse with your keyboard, but that doesn't let you move forward/backward/look-left/look-right with the direction arrows like I really want to be able to do, besides those accessability controls are klunky at best.

 

I chose to bump an old, unanswered thread on same issue rather than start my own since maybe two voices will be heard where one was previously not...

Link to comment
Share on other sites

Contradicting Slawter500 (with the risk of irritating a dear contributor The Evolving Society), here you go:

 

Enter the CS, create a new quest and attach the following script to it (requires OBSE).

 

If you are not familiar with the CS, just ask and I am sure somebody will do it for you.

I am afraid I cannot do more than this, as I have my hands full with other projects of mine. For fun, I challenged myself to do a quick and dirty mod for this in less than 10 minutes .

 

scn aaqqkbPlayerHeadingWithKeyboardSCRIPT

float fQuestDelayTime 
float angZ
float angX

begin gamemode
set fQuestDelayTime to .01
if IsKeyPressed3   80  ;  NUM2
	let angX := player.getangle X + 1
	if angX <= 89
		player.setangle X angX
	endif
endif
if IsKeyPressed3   75  ;  NUM4
	let angZ := player.getangle Z - 1
	player.setangle Z angZ
endif
if IsKeyPressed3   77  ;  NUM6
	let angZ := player.getangle Z + 1
	player.setangle Z angZ
endif
if IsKeyPressed3   72  ;  NUM8
	let angX := player.getangle X - 1
	if angX >= -89
		player.setangle X angX
	endif
endif
end

Link to comment
Share on other sites

scn aaqqkbPlayerHeadingWithKeyboardSCRIPT

 

float fQuestDelayTime

float angZ

float angX

 

begin gamemode

set fQuestDelayTime to .01

if IsKeyPressed3 80 ; NUM2

let angX := player.getangle X + 1

...

 

 

Thank you for your help, though I had never done mod-making of my own, so I had to educate myself a bit on it to try this. I downloaded the CS & OBSE and installed them, and even figured out how to do what you suggested (above), and that went great, all the way up to the part where I tried to compile the script and then I kept getting the error message, saying it doesn't recognize the term "let". Maybe I did something wrong (I doubt it, but maybe) or maybe there is a coding glitch above? Can someone please troubleshoot this so we can hopefully get it working?

 

Sorry for taking so long to reply, but I've been frightfully busy this week, and I had a lot of work to sink into this (see above) before I felt I knew enough to reply again. Thanks again for the help.

Link to comment
Share on other sites

"Let" is an OBSE command. You have to load the Construction Set thru the OBSE loader, so the OBSE part of the compiler can recognize its commands and functions. The OBSE docs explain how.

 

The best way is to create a desktop shortcut. Mine is pointing at "C:\Program Files (x86)\Oblivion\obse_loader.exe" -editor (with the quotes)

Link to comment
Share on other sites

"Let" is an OBSE command. You have to load the Construction Set thru the OBSE loader, so the OBSE part of the compiler can recognize its commands and functions. The OBSE docs explain how.

 

The best way is to create a desktop shortcut. Mine is pointing at "C:\Program Files (x86)\Oblivion\obse_loader.exe" -editor (with the quotes)

 

Yes, this is what I needed to do. Well I did that, and it worked great at compiling the above code, and then I saved it as an esp, activated it and tested it. Unfortunately it did not work, the keyboard never turned the camera left or right, and in fact the mod caused some instabiility in the game, with the screen turning light blue sometimes, so I had to turn it off.

 

If anyone can get this to work and post the esp file on TESNexus and link to it from this thread that would be sweet. Until then, I'll just give up on this idea for now.

 

Thanks for the help, though, I did learn some things.

Link to comment
Share on other sites

I tested the script posted above and it worked perfectly. I would gladly upload it for you, but from what I understand the servers are down on TESNexus right now so you wouldn't be able to download it until sometime tomorrow anyways.

 

A thought I had that *might* be your issue: Are you loading the game through OBSE as well?

 

If not there are two ways to do it, one is to download OBMM (Oblivion Mod Manager - a great tool to have), and anytime you launch Oblivion start that first. Or, you can edit the shortcut just like you did to load the editor with OBSE, except without the -editor at the end.

 

An example assuming a desktop icon:

 

Right click on the desktop icon and select properties.

In the box where it says Target it will most likely say "C:\Program Files\Bethesda Softworks\Oblivion\OblivionLauncher.exe"

Leaving everything else alone delete OblivionLauncher and instead type OBSE_Loader (leaving the .exe and quotation marks as well)

Hit Apply then Ok, and you're set. :)

Link to comment
Share on other sites

  • Recently Browsing   0 members

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