Description
The AltMoveButton
property in the PlayerController
class specifies the input button that the player will press to initiate running. This property is part of the input feature set and is categorized under running controls. It is a string value representing the button's name or identifier.
Usage
To configure the AltMoveButton
, assign it a string value that corresponds to the desired input button. This button will be used by the player to toggle running mode. If RunByDefault
is set to true, holding this button will switch the player to walking mode instead.
Example
// Example of setting the AltMoveButton property
PlayerController playerController = new PlayerController();
playerController.AltMoveButton = "Shift"; // Assigns the Shift key as the alternate move button for running.