Omniscye-Truck_Door_Button icon

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.

Last updated a week ago
Total downloads 59350
Total rating 2 
Categories Mods Client-side Server-side
Dependency string Omniscye-Truck_Door_Button-1.2.2
Dependants 19 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2100

README

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: https://discord.gg/QXDj8hrdRc

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