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 24, 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

Invoked when a player joined the Server

Parameter: (ref PlayerJoinEvent ev)

ev.Player = The Player who joined
ev.Nick = The nickname of the Player

PlayerLeaveEvent

Invoked when a Player left the Server

Parameter: (PlayerLeaveEvent ev)

ev.Player = Player who left the Server

PlayerSpeakEvent

Invoked when a player begins 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 SCP-939 Chat? (Only works if the Player is a Scp)
ev.IntercomTalk = Is the User allowed to talk in the Intercom Chat (Only works if the Player is a Human)
ev.RadioTalk = Is the User allowed to talk in the Radio Chat (Only works if the Player is a Human)
ev.ScpChat = Is the User allowed to talk in the Scp Chat (Only works if the Player is a Scp)
ev.SpectatorChat = Is the User allowed to talk in the Spectator Chat (Only works if the Player is a Spectator)

PlayerBanEvent

Invoked when a player gets banned by an admin.

Parameter: (ref PlayerBanEvent ev)

ev.Allowed = Can the Player be banned?
ev.BannedPlayer = The Player who got banned
ev.Issuer = The Admin who banned a player
ev.Duration = The duration of the Ban
ev.Reason = The reason of the Ban

PlayerDeathEvent

Invoked when a player dies

Parameter: (PlayerDeathEvent ev)

ev.Info = Hitinfos about the death
ev.Killer = The Player who killed someone
ev.Player = The Player who got killed

PlayerHurtEvent

Invoked when a Player gets hurt

Parameter: (ref PlayerHurtEvent ev)

ev.Info = Hitinfos about the Hit
ev.Attacker = The Player who attacked someone
ev.Player = The Player who gets attacked

PlayerCuffedEvent

Invoked when a Playwer is cuffed

Parameter: (ref PlayerCuffedEvent ev)

ev.Cuffer = The Player that is cuffing
ev.Target = The Player that is being cuffed
ev.Allow = Allow the Cuffing of the Player

PlayerEscapeEvent

Invoked when a Player Escapes

Parameter: (ref PlayerEscapeEvent ev)

ev.Player = The Player that escapes
ev.Allow = Can the Player escape?
ev.SpawnRole = The Role the Player escapes as
ev.CufferRole = The Role that the Player was at the time of escape
ev.IsCuffed = Is the Player cuffed?

SyncDataEvent

Invoked when Walk Data is Synchronized

Parameter: (ref SyncDataEvent ev)

ev.Allow = Allow the Sync?
ev.Player = The Player that Syncs
ev.Speed = The Movment Speed
ev.State = Is the Player Walking?

PlayerReloadEvent

Invoked when a Player reloads a weapon

Parameter: (ref PlayerReloadEvent ev)

ev.Player = The Player that reloads a weapon
ev.Allow = Can the Player reload?
ev.InventorySlot = The Weapon that is being reloaded

FemurEnterEvent

Invoked when a Player enters the Femur Breaker

Parameter: (ref FemurEnterEvent ev)

ev.Player = The Player that entered
ev.Allow = Can the Player enter the Femur Breaker?
ev.CloseFemur = Is the Femur Breaker Closing?

DropItemEvent

Invoked when a Player dropped an Item

Parameter: (ref DropItemEvent ev)

ev.Player = The Player that is dropping an item
ev.Item = The Item being dropped
ev.Allow = Can the Player drop an item?

Generator Events

These are the Parameters used for these Events:

  • GeneratorInsertedEvent
  • GeneratorEjectedEvent
  • GeneratorUnlockEvent
  • GeneratorOpenEvent
  • GeneratorCloseEvent
ev.Allow = Allow the Event?
ev.Generator = The Generator that is being used.
ev.Player = The Player that interacted with the Generator

UseItemEvent

Invoked when an Item is Used

Parameter: (ref UseItemEvent ev)

ev.Player = The Player that used an Item
ev.Allow = Allow the Usage of the Item

PickupItemEvent

Invoked when a Player picks up an item

Parameter: (ref PickupItemEvent ev)

ev.Allow = Allow the Player to pickup the Item
ev.Pickup = The Item that got Picked up
ev.Player = The Player that Picked up the Item

PlayerSetClassEvent

Invoked when a Player gets a new Role.

Parameter: (ref PlayerSetClassEvent ev)

ev.Items = A List of Items the Player gets when Spawning
ev.Player = The Player that is getting a Class
ev.Role = The Role that the Player is getting assigend to.

ScpEvents

ServerEvent

Clone this wiki locally