Skip to main content

InteractingLocker

Gets called when the player is interacting with a locker.

Start a script section

!-- OnEvent InteractingLocker
-- require @evPlayer *evLocker *evChamber $evCanOpen $evIsAllowed

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

Injected variables

VariableTypeDescription
@evPlayerplayer valueGets the player who is interacting with the locker.
*evLockerreference to Locker objectGets the locker that is being interacted with.
*evChamberreference to LockerChamber objectGets the chamber that is being targeted.
$evCanOpenbool valueGets whether the player is allowed to open it.
$evIsAllowedbool valueWhether the event is allowed to run.