There’s gotta be a better way to check this right? Every time the player presses tab, it adds 1 to the “tab pressed” variable unless it hits 2, in which case it resets. I’m using this to allow the player to see a highlight of a turret before they left click to confirm and place it. I’m using this logic all over the place and I’m sure there’s a better way. Help?
Am I correct to assume that you want the highlighting to be enabled when TAB is pressed down but disabled when TAB is released?
If so, hit the little down arrow on the IA_Tab Event, there should be Pins for Started and Stopped, Use those instead of Triggered.
Ah that’s super close! I never thought about those pins. I want the highlight to show when they press tab once, then if they press it again I want it to disappear. With your inputs my line trace just appears for a moment before disappearing again
I should add that my input action is set to pressed
Ok I get it.
When
TabPressed = true, set it to false
TabPressed = false, set it to true
right?
If so, this should work
Holy mother of god thank you so much! it works perfectly
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.