View Full Version : Adding Input Option
Taxxem
11-09-2009, 10:55 AM
I was looking to add a sprinting ability and was running into some problems understanding exactly in what uc file holds the keys so I can add the new input key.
wildicv
11-09-2009, 10:59 AM
If your modifying the UT then edit the UTInput.ini file
Solid Snake
11-09-2009, 11:03 AM
There are two ways of doing this that I can think of.
Inside PlayerInput there are various input variables which you can append to by subclassing the input class to add to your own. These input variables are then altered by the input system which uses the UTInput (or DefaultInput) config. In your case, I assume you want to have a button which does sprinting when holding down shift or whatever and then stop sprinting when releasing the button. If thats the case then I suggest you look at how walking is handled (Pressing shift now will make your character walk).
The other way to do it, is to use exec functions. These can be bound to keys within UTInput as well and you can call an exec function when a key is pressed, and then another exec function when a key is released.
Good luck.
Taxxem
11-09-2009, 01:31 PM
On my exploring exhibition I noticed the location of that information. The problem I am running into is I don't see anywhere in the script where you assign the button. Is this something I just manually assign inside of the input ini?
Powered by vBulletin® Version 4.1.6 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.