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
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player who wants to inspect KeycardItem. |
*evKeycardItem | reference to KeycardItem object | Gets the keycard item. |
$evIsAllowed | bool value | Whether the event is allowed to run. |