x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Modify binding with ingame menu ?

There is a way to modify key biding ingame ? I create an interface to change keybinding ingame by the player. There is a node to do that ? modify the input.ini ? listen the first player key input ?

Thanks

Product Version: Not Selected
Tags:
more ▼

asked Nov 25 '14 at 12:48 AM in Blueprint Scripting

avatar image

martoof
152 9 13 19

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

As far as I know it's only available through C++ and apparently quite fiddly.

However Rama made one a bit ago and pretty much gives it away. You can just use that in your project!

https://forums.unrealengine.com/showthread.php?51449-Full-Project-Rama-s-UMG-Rebindable-Key-System-Rebind-keys-at-Runtime!

I hope this helps.

Cheers

more ▼

answered Jan 13 '15 at 09:43 AM

avatar image

Erasio
6k 291 86 293

avatar image martoof Jan 13 '15 at 10:58 PM

Thank you @Erasio, It is really interesting to see how Rama did that with C++ ! He propose a very good bundle !

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

So I've been fiddling around and I think I found a way to do this in BP alone. We handle all input in our player controller and we create a [key] and a [boolean] variable for each pawn action. Each key stores the key used for a specific action. Each boolean specifies whether its respective key is configurable at the current time. For example, if the user traverses the menu screen and hits a widget button to bind a key, the corresponding boolean would then be set to True. We then use the AnyKey event to read in the newly binded key. Finally, every frame we handle our input by checking which action keys are pressed. Here is a dummy example with a configurable key to make a pawn jump.

Dummy KeyBinding

Instead of a menu screen, we simply make the key configurable when the spacebar is pressed. Nodes like WasInputKeyJustPressed, IsInputKeyDown, GetInputKeyTimeDown, GetInputAnalogKeyState, etc. can be used handle the input. This process is easily generalized to work with multiple actions (though it will probably need to be organized into separate functions).

more ▼

answered Dec 07 '16 at 08:14 AM

avatar image

Turing Machine
143 4 12 17

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question