Support for tugboatsSolved

hi white thunder, would you consider adding support for tugboats? (default and modded? such as bmgjet's tug me tugboats)

Thank you for the consideration sir

I've pushed a change to GitHub which you can download for testing at the following link.

https://raw.githubusercontent.com/WheteThunger/VehicleDeployedLocks/master/VehicleDeployedLocks.cs

Notes:

  • The "Lock" and "Unlock" prompt appears while anywhere on the tugboat. This cannot be fixed because it's client-side.
  • The "Lock" and "Unlock" prompt cannot truly be interacted with unless close to the lock location (within 3 meters). This is fixable but has significant performance consequences if not implemented carefully, so it may be quite a while until I take the time to address this.
  • Storage containers on the tugboat cannot be looted while the player is not authorized to the tugboat lock. This is working as designed, but there may be some additional deployables which should ideally have similar behavior. Please test various deployables and let me know if you think the plugin should use this logic for more entities.
  • Doors on the tugboat still need locks to block opening/closing. The plugin could possibly make doors require lock authorization.

will do, thank you white thunder <3

Locked automatically