LabAPI icon indicating copy to clipboard operation
LabAPI copied to clipboard

[IDEA] Add ‘CanOpen’ parameter to ’OnPlayerUnlocking/Unlocked WarheadButton‘ events

Open CCrous opened this issue 1 year ago • 1 comments

Goal Description

Currently, when OnPlayerUnlockingWarheadButton's IsAllow is set to true, it directly opens the warhead button cover instead of only allowing the event to proceed.

Suggestion:

Similar PlayerInteractingDoorEventArgs and PlayerInteractingLockerEventArgs implement the CanOpen parameter, PlayerUnlockingWarheadButtonEventArgs should include a CanOpen property to indicate whether the player can actually open the warhead button cover.

This would allow:

  • IsAllowed to only determine whether the event itself is permitted (flow control).
  • CanOpen to control whether the cover can physically be opened (functionality control).

Notes

No response

CCrous avatar Jul 22 '25 09:07 CCrous

Thank you for your suggestion! We've logged this issue in our internal git system for further review and tracking. Please note that this doesn't guarantee acceptance or implementation at this stage. If we need any additional information or clarification, we'll be sure to reach out to you.

Jesus-QC avatar Oct 14 '25 09:10 Jesus-QC