Skip to main content

InspectingKeycard

Gets called when the player wants to inspect any keycard item.

Start a script section

!-- OnEvent InspectingKeycard
-- require @evPlayer *evKeycardItem $evIsAllowed

# Add your instructions here
  • Group: PlayerEvents
  • Cancellable: Yes
  • Event data: PlayerInspectingKeycardEventArgs

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets the player who wants to inspect KeycardItem.
*evKeycardItemreference to KeycardItem objectGets the keycard item.
$evIsAllowedbool valueWhether the event is allowed to run.