Where is max walk speed stored? (UE5)

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.

An official tutorial (Ooops! Invalid access) assumes that the first person template contains a variable FP_MaxWalkSpeed, which I don’t find in the current version, and the documentation assumes that I just hard-code the values (Setting Up Character Movement | Unreal Engine Documentation).

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)?

Very best thanks in advance!

You need to store in a variable your desired default max walk speed for when you change it, have something to go back to.

In step 8 of the tutorial they change the variable on press and change it back on release.

This can also be set max walk speed to you sprint speed variable and when not sprinting set it back to your store max walk speed. For example:

Believe it’s MaxWalkSpeed in the 1st Person Template:

Drag from the Character Movement component:

Thank you very much!! :slight_smile:

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?

More like “predefined”.

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.

After you right-click in the blueprint area, uncheck the “Context Sensitive” option in the top right. Then try searching for max walk speed.