Hi,
in the First Person template’s FirstPersonCharacter Blueprint, I’m trying (after sprinting) to set Max Walk Speed back to its original value from the default value as set in the level in the Character Movement component (CharMoveComp) > Character Movement: Walking > Max Walk Speed, but those default values don’t appear in the BPs variables list.
How can I read the values from the component’s default values (like Max Walk Speed, Max Walk Speed Crouched)? Or even set them during runtime (like a stamina multiplier)?
Just to understand: So CharMoveComp has kind of an “internal” variable automatically populated with the default value from the Details panel, just one which I cannot access directly and need my own variable to do so?
It’s an existing Character class from the template you started with.
You can access directly and even modify, but you need to store different “default” values so that you can keep track of things a lot easier.
For example: you want you character to have a MaxWalkSpeed of 600 and 1,200 when sprinting. For that you access and set MaxWalkSpeed in the Character Movement component. Now, if you store 600 in a variable and 1,200 in another, you can reuse those values in what ever other mechanic you want, including other characters.