DoorInteract

Raise

This Event is raised when a Player tries to open a Door

Usage

Can be used to create Custom Permissions to open the Door.

Can also be used as an "interface" like calling a Custom Elevator

DoorInteractEvent

public class DoorInteractEvent : PlayerInteractEvent
{
    public SynapseDoor Door { get; }
    
    public bool LockBypassRejected { get; }

    public DoorInteractEvent(SynapsePlayer player, bool allow, SynapseDoor door, bool lockBypass) : base(player, allow)
    {
        Door = door;
        LockBypassRejected = lockBypass;
    }
}

Last updated