Announcement

Collapse
No announcement yet.

[Solved] Add Movement Input not working after switch on Enum

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [Solved] Add Movement Input not working after switch on Enum

    Hi,
    So I'm having a problem where I set a switch on a custom Enum. The switch prevents movement input:

    Click image for larger version  Name:	MovementNodes.PNG Views:	3 Size:	387.6 KB ID:	1505350

    It works fine before the switch is off:

    Click image for larger version  Name:	MovementNodesBefore.PNG Views:	2 Size:	409.7 KB ID:	1505351

    and, when the switch is off, functions as intended:

    Click image for larger version  Name:	MovementNodesAfter.PNG Views:	3 Size:	392.8 KB ID:	1505352

    however, when the switch is turned back on, movement input no longer does anything, even though I have checked all the inputs on the node one by one through print functions and can see by the lines they are being called.


    Click image for larger version  Name:	MovementNodesAfterSwitchback.PNG Views:	2 Size:	405.1 KB ID:	1505353

    I can't figure out what would be turned off that would prevent movement after and haven't been able to find anything through google or the unreal forums (a rare thing). Any help is appreciated. Thank you.
    Last edited by RepGames; 07-23-2018, 10:24 PM.

    #2
    So I figured it out. Apparently, it had nothing to do with the Enum. Another thing my input was doing was turning off capsule collision for my player pawn. Once it was off, I couldn't move on the forward axis or right/left axis. Still don't know why, but modifying my collision to overlap all/block worldstatic fixed it.

    Comment

    Working...
    X