Skip to main content

InteractedLocker

Gets called when the player has interacted with a locker.

Start a script section

!-- OnEvent InteractedLocker
-- require @evPlayer *evLocker *evChamber $evCanOpen

# Add your instructions here
  • Group: PlayerEvents
  • Cancellable: No
  • Event data: PlayerInteractedLockerEventArgs

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets the player who is interacted with the locker.
*evLockerreference to Locker objectGets the locker that was interacted with.
*evChamberreference to LockerChamber objectGets the chamber that was targeted.
$evCanOpenbool valueGets the boolean whether the player was allowed to open it.