Hi!
I`m trying to implement some basic mechanics to my test project, and there is a strange error occurring: I have a LeftShift input action responsible for running (While the shift is pressed MaxWalkSpeed is set to 400, otherwise it’s 200), and F key input responsible for turning the flashlight on and of. But in-game while I’m running with shift pressed, pressing F has no effect, so I need to release running, and only after that by pressing F, the flashlight will be on. What am I doing wrong?
My blueprint looks like this:
I think it’s because when you’re running, you’re pressing SHIFT-F, try also putting that in as the torch on/off key.
I did just like you said, but it didn`t help:
Yeah, I don’t see anything suspect. Apart from 4.27, I’m using 4.26, long shot, but that might be it. Do you still have 4.26?
Also, one more strange thing about this - I implemented some more features like camera rotation on 180 degrees if SpaceBar is pressed, and it works even if I`m currently running
Ok, I just checked it, you don’t need the extra shift config line, it works by default.
I’m wondering if you have some sort of conflicting input going on.
As far as I see, F is bind only to flashlight and nothing else
Nope, I don’t have 4.26 installed on this PC, but I will check this theory in the nearest future. But most likely you’re right, engine version might be a problem, thanks for your time)
So, for anyone who had the same problem:
It seems that this problem occurs just to the F key, other keys bound to this action worked fine.
Only the “Pressed” event ignores, “released” still works OK.
Possible solution - bind switch action to Released node, it still might work fine.
What is the root of the problem - I still have no idea, must be a bug or something in a new engine version