August 2019
Intermediate to advanced
380 pages
9h 17m
English
To add a constraint to the sprinting ability of the player, we'll need to return to the Blueprint where we originally defined the ability. Open the FirstPersonCharacter Blueprint located in the Blueprints folder of Content Browser.
First, we need to create a couple of variables that will keep track of whether or not the player is sprinting and how much stamina sprinting should cost. Find the Variables category of the My Blueprint panel and click the + button twice to add two new variables. Rename the first variable to Sprint Cost and assign it the Float type. Make sure to click the checkbox next to Instance Editable as True and set the variable's default value to 0.1. Rename the second variable IsSprinting ...
Read now
Unlock full access