Any idea why my enum stop working?

So I am trying to get my player into sprint state. Here is my declaration:



And to debug, I print out the value of my current movement state in tick function:

So I am thinking, if everything checks out, my current movement state should equal to 0, but here is the value when I click play :
image

This suddenly happened and I can’t get into my sprint animation anymore. Any idea why?

So I tried different ways to debug. It seems like the value of this enum can’t be updated even if I hardcoded it.


But my another enum works perfectly and can be updated as the game continues.

It feels like I lost connect with that enum only. Any idea why?

Is that the only place where it is modified?

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms