⚠️ Not yet verified in-game — this page was drafted from source analysis and hasn't been confirmed by actually running it. Treat it as a strong draft, not gospel.
Hackybench
Module: hackybench.lua
Overview
The Hackybench module is a specialized version of the Bench module. It inherits from Bench and overrides its Use function to provide custom behavior when interacted with by players.
Inheritance
- Inherits from:
Bench - Imports: none
Instance pattern
This module follows the per-instance object pattern (keyed by uGuid) inherited from Bench. It does not introduce any additional state fields beyond those defined in Bench.
Functions
Use(aiguid, floatval)
Overrides the Use function from the Bench module. Currently, this function is empty and does nothing when called.
Events
- Listens for
Event.ObjectHibernationto callAwakewhen the object leaves hibernation (inherited fromBench). - Listens for
OnUseto trigger theUsefunction when the player interacts with the object (inherited fromBench).
Notes for modders
- This module is a placeholder or template that extends the functionality of
Bench. The current implementation of theUsefunction does nothing. - To extend this module, you can override the
Usefunction with custom logic to provide specific behavior when players interact with the object. - Ensure that any modifications to the
Usefunction do not interfere with other interactions or game mechanics.