August 2019
Intermediate to advanced
380 pages
9h 17m
English
Preventing the player from sprinting when they don't have sufficient stamina can be accomplished by adding a Branch node right after the sprint Function trigger. Find the InputAction Sprint node and break its Pressed execution pin connection with the SET Max Walk Speed node. Add and connect a Branch node to the Pressed execution pin. Its output execution pin should then be connected to the SET Max Walk Speed node to, again, establish a complete chain. Now that the Branch node is set up, we need to establish the condition that will allow the left Shift trigger to continue activating the speed change through the True branch.
Read now
Unlock full access