Truck Door Button
Open and Close the Truck door! Networked truck door button with synced open/close events for all clients, local FX, and anti-spam cooldown.
About this mod Author’s original text
Truck Door Button
Version: 1.2.2
Message to my awesome friends and the players who use my mods.
- I was banned from the REPO modding server when I was taking a temp leave from the server due to drama. I was not even in the server when the ban happened. As such, if you need support for my mods or just want to hang out join my new personal server on Discord:
Make the truck bay door obey. This adds a physical button that beeps, flashes, and opens/closes the door with smooth motion fully multiplayer-synced via Photon events. Auto-binds on first event and survives level changes.
Update 1.2.1
- Game 0.3.x Compatibility!
Features
- Networked OPEN/CLOSE events (reliable, all-clients).
- Auto-bind on first event so clients who never pressed the button still animate correctly.
- Cooldown to stop mashers from griefing (configurable).
- Audio + visual FX: short beep + color flash, optional door SFX (door.ogg).
- Scene-safe: host object persists across loads; handler re-hooks every scene.
Multiplayer Behavior
- Authoritative timing: Everyone receives the same OPEN/CLOSE at the same moment.
- Local animation: Door moves client-side to the configured positions/durations.
- Master auto-open: If enabled, only the MasterClient triggers timed auto-reopen after a close.
Config (BepInEx)
- DoorFind: RootHint, ParentName, DoorName — find the door quickly without deep scene crawling.
- Motion: UseLocal, ClosedY, OpenY, OpenDuration, CloseDuration, AutoOpenDelay.
- UI: ShowPrompt, ButtonCooldown (seconds).
Compatibility & Safety
- Built on BepInEx + Harmony (non-invasive patches).
- Photon RaiseEvent opcodes
Changelog
1.0.0 - Initial release
Have fun, hit the button, don’t get crushed.
Made by Omniscye/Empress
Install & use Install: BepInEx plugin
- The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
- Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
- Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
- Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.
Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file.
Install these first, or the mod will not work: