Skip to content
This repository was archived by the owner on Sep 12, 2020. It is now read-only.

EventList

Robin Möller edited this page Jun 23, 2020 · 15 revisions

MapEvents

DoorInteractEvent

Invokes when a Player presses use on a door.

Parameters: (ref DoorInteractEvent ev)

ev.Player = The Player who used the door
ev.Allow = Allow the player to open the door?
ev.Door = The Door which the player tried to open

TeslaTriggerEvent

Invokes when a Tesla is activated.

Parameter: (ref TeslaTriggerEvent ev)

ev.Player = The Player who activated the Tesla
ev.IsHurtRange = Is the Player in damage range
ev.Triggerable = Can the Tesla activate?

WarheadDetonationEvent

Invokes when the warhead is detonated.

No parameters required.

PlayerEvents

PlayerJoinEvent

Activates when a Player joins the Server

Parameter: (ref PlayerJoinEvent ev)

ev.Player = The Player who joins

ev.Nick = The NickName the Player will get

PlayerLeaveEvent

Activates when a Player Leaves the Server

Parameter: (PlayerLeaveEvent ev)

ev.Player = Player who leaves the Server

PlayerSpeakEvent

Activates when a Player Starts to Speak

Parameter: (ref PlayerSpeakEvent ev)

ev.Player = The Player who Speaks

ev.DissonanceUserSetup = The Voice setup class for the Player

ev.Scp939Talk = Is the User allowed to talk in the Scp939 Chat (Does only Work if the Player is a Scp)

ev.IntercomTalk = Is the User allowed to talk in the Intercom Chat (Does only Work if the Player is a Human)

ev.RadioTalk = Is the User allowed to talk in the Radio Chat (Does only Work if the Player is a Human)

ev.ScpChat = Is the User allowed to talk in the Scp Chat (Does only Work if the Player is a Scp)

ev.SpectatorChat = Is the User allowed to talk in the Spectator Chat (Does only work if the Player is a Spectator)

PlayerBanEvent

Activates when a Player gets banned

Parameter: (ref PlayerBanEvent ev)

ev.Allowed = Can the Player be Banned?

ev.BannedPlayer = The Player who gets banned

ev.Issuer = The Admin who bans a Player

ev.Duration = The Duration of the ban

ev.Reason = The Reason of the ban

PlayerDeathEvent

Activates when A Player die

Parameter: (PlayerDeathEvent ev)

ev.Info = HitInfos about the Death

ev.Killer = The Player who killed someone

ev.Player = The Player who gets killed

PlayerHurtEvent

Activates when a Player Gets Hurt

Parameter: (ref PlayerHurtEvent ev)

ev.Info = HitInfos about the Hit

ev.Attacker = The Player who attacks someone

ev.Player = The Player who gets attacked

ScpEvents

ServerEvent

Clone this wiki locally