InteractingElevator
Gets called when the player is interacting with an elevator.
Start a script section
!-- OnEvent InteractingElevator
-- require @evPlayer *evElevator *evPanel $evIsAllowed
# Add your instructions here
- Group: PlayerEvents
- Cancellable: Yes
- Event data:
PlayerInteractingElevatorEventArgs
Injected variables
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player who is interacting with the elevator. |
*evElevator | reference to Elevator object | Gets the elevator. |
*evPanel | reference to ElevatorPanel object | Gets the elevator panel. |
$evIsAllowed | bool value | Whether the event is allowed to run. |