diff --git a/Tweaks/WalkingModeCommand.cs b/Tweaks/WalkingModeCommand.cs new file mode 100644 index 00000000..2e40e6ed --- /dev/null +++ b/Tweaks/WalkingModeCommand.cs @@ -0,0 +1,20 @@ +using FFXIVClientStructs.FFXIV.Client.Game.Control; +using SimpleTweaksPlugin.Tweaks.AbstractTweaks; +using SimpleTweaksPlugin.TweakSystem; + +namespace SimpleTweaksPlugin.Tweaks; + +[TweakName("Walking Mode Command")] +[TweakDescription("Adds a command to toggle walking mode")] +[TweakAuthor("SubaruYashiro")] +public unsafe class WalkingModeCommand: CommandTweak +{ + protected override string Command => "/walk"; + protected override string HelpMessage => "Toggle Walking Mode"; + + protected override void OnCommand(string args) + { + Control* ctrl = Control.Instance(); + ctrl->IsWalking = !ctrl->IsWalking; + } +}