LockerUse

Raise

This Event is raised when a Player tries to Open/Closes a Locker Chamber

Usage

Can be used to prevent Players from opening/closing certain Locker

LockerUseEvent

EventArgsTypeDescription

Player

SynapsePlayer

The Player which tries to interact with a Locker

Allow

bool

If the Player is allowed to interact with the Locker

Locker

SynapseLocker

The Locker which the Player tries to interact with

Chamber

SynapseLockerChamber

The Locker Chamber which the Player tries to interact with

public class LockerUseEvent : PlayerInteractEvent
{
    public LockerUseEvent(SynapsePlayer player, bool allow, SynapseLocker locker,
        SynapseLocker.SynapseLockerChamber chamber) : base(player, allow)
    {
        Locker = locker;
        Chamber = chamber;
    }

    public SynapseLocker Locker { get; }
    
    public SynapseLocker.SynapseLockerChamber Chamber { get; }
}

Last updated