Jump to content

Key mapping


L0bban

Recommended Posts

As an avid FPS player (and Role player also of course =0) the one thing that bothers me most is the inability to bind whatever keys I like to whatever I want, especially weapons. For me, 8 bindable INVENTORY keys isn't nearly enough.

Is there a mod out there or some other way to come around this? Would be wonderful to map my own weapon keys to the around 15 weapons I would like to have handy just a click away! And yes, I really want that many keys as I with some characters like to play fully real time without VATS, and the pausing breaks the suspension.

Link to comment
Share on other sites

It is possible to bind keys in this way using FOSE's IsKeyPressed. For example, the following code will check whether or not the "N" key has been pressed, and run some code once whenever it is pressed:

short sIsNPressed

Begin GameMode

if sIsNPressed != IsKeyPressed 49
	set sIsNPressed to sIsNPressed == 0
	if sIsNPressed
		; "N" has been pressed, do stuff
	endif
endif

End

The main issue when it comes to "hotkeying" equippable items is that OnEquip blocks won't be "triggered" via EquipItem, so trying to equip items that use OnEquip blocks via EquipItem would essentially break their script.

 

Unscripted items should be completely safe though. It would be entirely possible to only allow unscripted items to be "hokeyed" with a Mod like this by using FOSE's IsScripted.

 

Cipscis

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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