InteractingDoor
Gets called when the player is interacting with a door.
Start a script section
!-- OnEvent InteractingDoor
-- require @evPlayer *evDoor $evCanOpen $evIsAllowed
# Add your instructions here
- Group: PlayerEvents
- Cancellable: Yes
- Event data:
PlayerInteractingDoorEventArgs
Injected variables
| Variable | Type | Description |
|---|---|---|
@evPlayer | player value | Gets the player who is interacting with the door. |
*evDoor | reference to Door object | Gets the door that is being interacted with. |
$evCanOpen | bool value | Gets whether player can open the door. |
$evIsAllowed | bool value | Whether the event is allowed to run. |