BDC_Patrick:
Hi there…
The Situation is as follows:
I created some Input bindings in the Project Preferences. One, is the “Action_CallInventory”, that is an Action fired by hitting the “I” key.
I managed to call my Inventory with it, but can´t close it, by hitting the key again…
That´s cause i set the Input Mode to UI only, focusing the Inventory.
To avoid that, i overrided the OnKeyDown Function of the Inventory Window.
This looks like THIS, now:
As you can see, i get the Key of this Function, and checked it against a Hardcoded one, with a Branch.
The Problem now is:
What, if the Player OR myself, is trying to rebind the Inventory key?
Tried it, by setting the Action Mapping to “Tab”, and i was able to call the Inventory… but was not able to close it with the Tab key again… cause the “I” key is hardcoded in that branch…
Is there a way to chgeck agains an Action mapping key, insted of a hardcoded one?
Searched myself around the Net for some Days now… Most of posts are from the old Answerhub and not working anymore… so… Perhaps you guys know some way to do it…
Edit Solution:
Nevermind… Right at this Moment, i found a Solution… The Function is called:
GetActionMappingbyName, that takes an GetInputSettings References and spits out a key array…
This node is just not appearing in the Context Browser… even when you disable Context sensitivity…
I created a Function Library to avoid Copy&Pasting more nodes than neccessary.
Here´re the BP Function Library Graphs:
This takes either a KeyEvent or KeyStruct itself, and gives back a true/false if any Key of the named Mapping is hit.
CoP3D
(CoP3D)
September 29, 2023, 2:17am
2
Sorry for the unrelated question, but how do you manage to get these clean line connection? Would love to have my connection line set-up like yours.
illspiritx
(illspiritx)
September 29, 2023, 5:23pm
3
If you use enhanced input, you can query the system and see if the key in the widget’s keydown contains the relevant input action.
I close my inventory this way in the keydown event.
2 Likes
Node Graph Assistant Plugin…
Cause of the Quality of Life things it comes with… The Execution Line Styling is just a Bonus of it