LabAPI
LabAPI copied to clipboard
[BUG?] Changing IsAllowed to true for PlayerUnlockingGeneratorEventArgs does not work
I'm not certain if this is a bug or intentional.
If the IsAllowed field of PlayerUnlockingGeneratorEventArgs is set to false initially (the player does not hold a keycard with the required permissions), even when setting it to true, the generator will not be unlocked.
Instead of checking for the changed flag, maybe check for whether the event is allowed to determine whether or not to unlock a generator? (Same as how the PlayerInteractingLockerEvent currently works)
Resolved in 14.1.3 Thank you for your feedback on LabAPI!