FollowPlayer

版本 v0.1.0·更新於 2026-08-29

Auto-walk to follow another player.

模組介紹 作者原文

A client-side Valheim mod that lets you auto-walk toward and trail another player. Type a chat command and your character paths toward a target player so you can take your hands off the keyboard while still being able to fight.

This is client-side only. It drives your own character's movement, which the base game already replicates to other players, so no one else on the server needs the mod.

Features

  • Toggle follow on or off with /follow.
  • Cycle through nearby players to pick a target with /follownext.
  • Turning follow on with no target picks whichever nearby player you're facing, not just the closest one.
  • Moving, attacking, or blocking yourself turns follow off; run /follow again to resume. Jumping, crouching, etc. don't interrupt it.
  • A "Following: ``" indicator stays in the top-right corner of the screen while follow is active.
  • Configurable stop distance (how close you trail) and run distance (when the follower breaks into a run).

Installation

  • Install BepInEx for Valheim.
  • Download FollowPlayer.dll from the latest release, or build it yourself (see Building).
  • Drop FollowPlayer.dll into BepInEx/plugins.

Usage

  • /follow — toggle following on or off. Turning it on targets whichever nearby player you're facing.
  • /follownext — cycle to the next nearby player.

Configuration

A config file is generated after the first run at BepInEx/config/FollowPlayer.cfg.

| Setting | Default | Description |

| --- | --- | --- |

| StopDistance | 4 | Stop this many meters short of the target. |

| RunDistance | 8 | Beyond this distance the follower runs. |

Building

Requires the.NET SDK. The project pulls the game, Unity, and BepInEx assemblies from NuGet, so no manual DLL copying is needed.

dotnet build -c Release

If the restore cannot locate your game install, set VALHEIM_INSTALL to your install path first, for example on Linux:

export VALHEIM_INSTALL="$HOME.local/share/Steam/steamapps/common/Valheim"

dotnet build -c Release

The built DLL lands in bin/Release/net462/FollowPlayer.dll.

Known limitations

Following is straight-line, so the follower can snag on trees, boulders, and steep terrain. A future version can path through Valheim's own navigation (Pathfinding.instance.GetPath) and steer toward waypoints instead of straight at the target.

License

MIT. See LICENSE.

安裝與使用 安裝:BepInEx 外掛

  1. 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
  2. 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
  3. 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
  4. 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。

帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。 多人連線時,主機與所有用戶端需要安裝一致的模組。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

denikson-BepInExPack_Valheim

檔案與校驗

檔案名稱
FollowPlayer-0.1.0.zip
檔案大小
31.9 KiB