Skip to content

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

@CCrous

Description

@CCrous

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestideaThis is an idea to doimportedImported to internal git

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions