Apologies, I am fairly new and a bit stuck!
Situation is, I am doing a multiplayer networked game. I had the float variables of Health, Stamina etc within the Player Character BP. Problem is the HUD only worked for the Server. So after much research it seems I was a dummy and should instead store those variables within Player State.
So I have now set them up as variables within the player state and that’s working fine, every clients HUD is correct to the values.
New problem is as follows: I want to use the stamina system for sprinting, jumping etc… I can’t register the input from player state so how do I get the input action of Jump, to check against the value of stamina from the player state?
For example, I want to make sure say, Variable of ‘Stamina’ is greater than Variable of ‘Stamina Jump Amount’ and if True, Jump!
I managed to get it to do the check and render true or false, however this only seemed to make the server char jump but never the client.
I have tried many ways much to my distress and got nowhere. Spent hours searching and also found nothing.
Someone please save me this headache! Thanks in advance!