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
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player who is interacting with the locker. |
*evLocker | reference to Locker object | Gets the locker that is being interacted with. |
*evChamber | reference to LockerChamber object | Gets the chamber that is being targeted. |
$evCanOpen | bool value | Gets whether the player is allowed to open it. |
$evIsAllowed | bool value | Whether the event is allowed to run. |