Wariat117 replied to Can I change rotate key from scroll mouse to other button? March 13, 2021 @ 9:27:45 am PDT

1) You can use controller (just for rotating, and for the rest K+M)
2) You can edit the button in the game files

File:
\Steam\steamapps\common\Valheim\valheim_Data\Managed\assembly_valheim.dll
Class:
public class Player : Humanoid
Method:
private void UpdatePlacement(bool takeInput, float dt)

Code:
if (Input.GetAxis("Mouse ScrollWheel") < 0f) { this.m_placeRotation--; } if (Input.GetAxis("Mouse ScrollWheel") > 0f) { this.m_placeRotation++; }
Either replace those 2 or add next to them
if (Input.GetKey(KeyCode.LeftAlt)) { this.m_placeRotation--; } if (Input.GetKey(KeyCode.RightAlt)) { this.m_placeRotation++; }
Instead of left/right alt you can use different buttons.
5:13 pm, July 31, 2021
Wariat117 0 comments 0 likes