Character stats are not modifying with the State manager

I am following a tutorial to learn about state manager/stats based on character actions, and I have this issue. If I perform a light attack, without using the state manager of the weapon,it modifies the stamina in correpsonding with the the value that I have set manually in the Character_BP.


However, if I link the weapon blueprint set with the state manager, with the Character_BP so different attacks will cost different stamina, the stamina is not reduced.Below you will see images from the blueprints that I am using.



I have put big numbers so I can see the difference

I believe the issue is somewhere within the GetStatsCostforAction function, since once I unplug it, the stamina is reduced and I can see it from my stmaina bar that I have implemented . And if I link the part that breaks the stamina reduction with my other types of attack(charge/heavy/jump attack), it doesnt show the reduction of the stamina.

Same issue I can say that I have with the damage. Although I have put a different damage multiplier for each attack type, it does only the basic damage.So I dont know if the state manager is being read at all.


But I would like to go slow and learn where is the problem for each issue at a time.

id guess you is valid node is failing, put print strings or breakpoints there, and inside your GetStatCost.

check if the values are valid, is the enum correct, is the find successful etc