KeyPress

Raise

This Event is raised when a player uses the command .keypress send number

Most likely has the Player installed the Key Bind System and pressed a certain button

Usage

It is up to the developer for what he uses this Event.

The most Common cases are shortcuts for the commands or other interactions like SCP-106 Stalk

KeyPressEvent

EventArgTypeDescription

Player

SynapsePlayer

The Player who pressed the Key

KeyCode

KeyCode

The Presses Key

public class KeyPressEvent : PlayerEvent
{
    public KeyCode KeyCode { get; }

    public KeyPressEvent(SynapsePlayer player, KeyCode keyCode) : base(player)
    {
        KeyCode = keyCode;
    }
}

Last updated