How can i set value of local variable from other variable

i am beginner in c++ and i am making a movement system, i created enum in separated c++ class

347408-03.png

and i added it to the header file of player

i am trying to run script in player cpp file which has local “EAdditionalMovementState” variable but i cant set its value to value of the main variable

All help is greatly apreciated <3

ok so if anyone has similar problem, it didn’t work for me because I didnt create “CheckMovementState” function in header file and also instead of “EAdditionalMovementState Value = AdditionalMovementState;”. I did “EAdditionalMovementState Value = (AdditionalMovementState);” and it works well so, there you go