The player cant activate the flashlight while sprinting and idk why


That is my flashlight BP, really simple, but the flashlight just dont start if I press F while sprinting, and I dont want it to happen.
My sprint system is a little bit more complex, so idk how to solve this problem.



Hey there @EnjGames! Since your sprint system and your flashlight system have no interaction whatsoever, I’m more inclined to believe this is a system limitation. Many keyboards are limited in the number of inputs you can do at once.

To test this, try and see if the F key even fires at all when you’re sprinting. Then if it’s not, it’s likely that your keyboard has limited inputs. Much of the time it’s sided to specific portions, so say 3 or 4 keys work on the left side, and 3 or 4 keys on the right work at once.

Here’s a site that can test what inputs you can and can’t make together. Let me know if F can still be hit after you’re pressing the movement combinations:

Disclaimer: Epic Games is not liable for anything that may occur outside of this Unreal Engine domain. Please exercise your best judgment when following links outside of the forums.

https://www.microsoft.com/applied-sciences/projects/anti-ghosting-demo

Yea F is still hitting

Drop a print string at the end of the A flipflop after set collision enabled. If it prints then the nodes are being executed and you have other issues.

that is quite a complicated web you have there, maybe you could break the logic in separate events

Hrm, I agree with Doru, try and put some print strings before and after the flip flops, and some break points to verify the input actually processes. If it doesn’t there might be issues higher in the hierarchy. Let us know how it goes!

well the print string is not being executed

Im new to unreal, i dont really know what to do. Can you help me via discord? Gabriel.#3067

Hello there,
that function (SHIFT+F) is blocked when played in a editor window. When you play in Standalone it works (maybe someone else could give us an explanation of the WHY, blocked for SHIFT+F1?). Tested it in my project (similar starting point: Sprint with Shift and Light on F) and got the same result with an in-editor window. @EnjGames was able to solve this error / was able to test it on his project and his functions work in Standalone. :slight_smile:

1 Like