Skip to content

Conversation

@martiandweller
Copy link

I'm working on a mod that automates the Farmer's actions, including movement. The animation breaks when I try to move the character with SetMovingUp() and similar methods. I believe this is because the Game1.UpdateControllerInput() method Halt() the character and resets an animation if there is no input.

if ((!moveUpHeld && !moveRightHeld && !moveDownHeld && !moveLeftHeld && !player.UsingTool) || activeClickableMenu != null) { player.Halt(); }

This PR exposes already existing OverrideButton method to the mod API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant