Class Player
Player related events.
public class Player
- Inheritance
-
Player
- Inherited Members
- Extension Methods
Properties
ActivatingGenerator
Invoked before a Player turns on the generator by switching lever.
public static Event<ActivatingGeneratorEventArgs> ActivatingGenerator { get; set; }
Property Value
ActivatingWarheadPanel
Invoked before activating the warhead panel.
public static Event<ActivatingWarheadPanelEventArgs> ActivatingWarheadPanel { get; set; }
Property Value
ActivatingWorkstation
Invoked before activating a workstation.
public static Event<ActivatingWorkstationEventArgs> ActivatingWorkstation { get; set; }
Property Value
AimingDownSight
Invoked before a Player triggers an aim action.
public static Event<AimingDownSightEventArgs> AimingDownSight { get; set; }
Property Value
Banned
Invoked after a Player has been banned from the server.
public static Event<BannedEventArgs> Banned { get; set; }
Property Value
Banning
Invoked before banning a Player from the server.
public static Event<BanningEventArgs> Banning { get; set; }
Property Value
CancelledItemUse
public static Event<CancelledItemUseEventArgs> CancelledItemUse { get; set; }
Property Value
CancellingItemUse
public static Event<CancellingItemUseEventArgs> CancellingItemUse { get; set; }
Property Value
ChangedEmotion
Invoked after a player's emotion changed.
public static Event<ChangedEmotionEventArgs> ChangedEmotion { get; set; }
Property Value
ChangedItem
public static Event<ChangedItemEventArgs> ChangedItem { get; set; }
Property Value
ChangingDangerState
Invoked after a Player is changing danger state.
public static Event<ChangingDangerStateEventArgs> ChangingDangerState { get; set; }
Property Value
ChangingDisruptorMode
Invoked before disruptor's mode is changed.
public static Event<ChangingDisruptorModeEventArgs> ChangingDisruptorMode { get; set; }
Property Value
ChangingEmotion
Invoked before a player's emotion changed.
public static Event<ChangingEmotionEventArgs> ChangingEmotion { get; set; }
Property Value
ChangingGroup
Invoked before changing a Player group.
public static Event<ChangingGroupEventArgs> ChangingGroup { get; set; }
Property Value
ChangingItem
public static Event<ChangingItemEventArgs> ChangingItem { get; set; }
Property Value
ChangingMicroHIDState
Invoked before a Player MicroHID state is changed.
public static Event<ChangingMicroHIDStateEventArgs> ChangingMicroHIDState { get; set; }
Property Value
ChangingMoveState
Invoked before a Player changes move state.
public static Event<ChangingMoveStateEventArgs> ChangingMoveState { get; set; }
Property Value
ChangingNickname
Invoked before a Player's nickname is changed.
public static Event<ChangingNicknameEventArgs> ChangingNickname { get; set; }
Property Value
ChangingRadioPreset
Invoked before a user's radio preset is changed.
public static Event<ChangingRadioPresetEventArgs> ChangingRadioPreset { get; set; }
Property Value
ChangingRole
Invoked before changing a Player role.
public static Event<ChangingRoleEventArgs> ChangingRole { get; set; }
Property Value
Remarks
If IsAllowed is set to false when Escape is true, tickets will still be given to the escapee's team even though they will 'fail' to escape. Use Escaping to block escapes instead.
ChangingSpectatedPlayer
Invoked after a Player changed spectated player.
public static Event<ChangingSpectatedPlayerEventArgs> ChangingSpectatedPlayer { get; set; }
Property Value
ClosingGenerator
Invoked before a Player closes a generator.
public static Event<ClosingGeneratorEventArgs> ClosingGenerator { get; set; }
Property Value
DamagingDoor
Invoked before a Player damage a Door.
public static Event<DamagingDoorEventArgs> DamagingDoor { get; set; }
Property Value
DamagingShootingTarget
Invoked before a Player damages a shooting target.
public static Event<DamagingShootingTargetEventArgs> DamagingShootingTarget { get; set; }
Property Value
DamagingWindow
Invoked before a Player damage a Window.
public static Event<DamagingWindowEventArgs> DamagingWindow { get; set; }
Property Value
DeactivatingWorkstation
Invoked before deactivating a workstation.
public static Event<DeactivatingWorkstationEventArgs> DeactivatingWorkstation { get; set; }
Property Value
Destroying
Invoked before destroying a Player.
public static Event<DestroyingEventArgs> Destroying { get; set; }
Property Value
Died
Invoked after a Player died.
public static Event<DiedEventArgs> Died { get; set; }
Property Value
DrinkingCoffee
Invoked before player interacts with coffee cup.
[Obsolete("Never available (for now).")]
public static Event<DrinkingCoffeeEventArgs> DrinkingCoffee { get; set; }
Property Value
DroppedAmmo
Invoked after dropping ammo.
public static Event<DroppedAmmoEventArgs> DroppedAmmo { get; set; }
Property Value
DroppedItem
Invoked after dropping an Item.
public static Event<DroppedItemEventArgs> DroppedItem { get; set; }
Property Value
DroppingAmmo
Invoked before dropping ammo.
public static Event<DroppingAmmoEventArgs> DroppingAmmo { get; set; }
Property Value
DroppingItem
Invoked before dropping an Item.
public static Event<DroppingItemEventArgs> DroppingItem { get; set; }
Property Value
DroppingNothing
Invoked before dropping a null Item.
public static Event<DroppingNothingEventArgs> DroppingNothing { get; set; }
Property Value
DryfiringWeapon
Invoked before a Player dryfires a weapon.
public static Event<DryfiringWeaponEventArgs> DryfiringWeapon { get; set; }
Property Value
Dying
Invoked before a Player dies.
public static Event<DyingEventArgs> Dying { get; set; }
Property Value
EarningAchievement
Invoked before a Player earns an achievement.
public static Event<EarningAchievementEventArgs> EarningAchievement { get; set; }
Property Value
Remarks
Will not fire for certain client-side achievements.
EnteringEnvironmentalHazard
Invoked before a Player enters in an environmental hazard.
public static Event<EnteringEnvironmentalHazardEventArgs> EnteringEnvironmentalHazard { get; set; }
Property Value
EnteringKillerCollision
Invoked before a Player enters killer collision.
public static Event<EnteringKillerCollisionEventArgs> EnteringKillerCollision { get; set; }
Property Value
EnteringPocketDimension
Invoked before a Player enters the pocket dimension.
public static Event<EnteringPocketDimensionEventArgs> EnteringPocketDimension { get; set; }
Property Value
Escaped
Invoked after a Player escapes.
public static Event<EscapedEventArgs> Escaped { get; set; }
Property Value
Escaping
Invoked before a Player escapes.
public static Event<EscapingEventArgs> Escaping { get; set; }
Property Value
EscapingPocketDimension
Invoked before a Player escapes the pocket dimension.
public static Event<EscapingPocketDimensionEventArgs> EscapingPocketDimension { get; set; }
Property Value
ExitingEnvironmentalHazard
Invoked when a Player exists from an environmental hazard.
public static Event<ExitingEnvironmentalHazardEventArgs> ExitingEnvironmentalHazard { get; set; }
Property Value
FailingEscapePocketDimension
Invoked before a Player fails to escape the pocket dimension.
public static Event<FailingEscapePocketDimensionEventArgs> FailingEscapePocketDimension { get; set; }
Property Value
FlippingCoin
Invoked before a Player flips a coin.
public static Event<FlippingCoinEventArgs> FlippingCoin { get; set; }
Property Value
Handcuffing
Invoked before handcuffing a Player.
public static Event<HandcuffingEventArgs> Handcuffing { get; set; }
Property Value
Healed
Invoked after a Player has healed.
public static Event<HealedEventArgs> Healed { get; set; }
Property Value
Healing
Invoked before a Player heals.
public static Event<HealingEventArgs> Healing { get; set; }
Property Value
Hurt
Invoked after hurting a Player.
public static Event<HurtEventArgs> Hurt { get; set; }
Property Value
Hurting
Invoked before hurting a Player.
public static Event<HurtingEventArgs> Hurting { get; set; }
Property Value
Interacted
Invoked after a Player interacted with something.
public static Event<InteractedEventArgs> Interacted { get; set; }
Property Value
InteractingDoor
Invoked before a Player interacts with a door.
public static Event<InteractingDoorEventArgs> InteractingDoor { get; set; }
Property Value
InteractingElevator
Invoked before a Player interacts with an elevator.
public static Event<InteractingElevatorEventArgs> InteractingElevator { get; set; }
Property Value
InteractingLocker
Invoked before a Player interacts with a locker.
public static Event<InteractingLockerEventArgs> InteractingLocker { get; set; }
Property Value
InteractingShootingTarget
Invoked before a Player interacts with a shooting target.
public static Event<InteractingShootingTargetEventArgs> InteractingShootingTarget { get; set; }
Property Value
IntercomSpeaking
Invoked before a Player begins speaking to the intercom.
public static Event<IntercomSpeakingEventArgs> IntercomSpeaking { get; set; }
Property Value
IssuingMute
Invoked before muting a user.
public static Event<IssuingMuteEventArgs> IssuingMute { get; set; }
Property Value
ItemAdded
Invoked after a Player has an item added to their inventory.
public static Event<ItemAddedEventArgs> ItemAdded { get; set; }
Property Value
ItemRemoved
Invoked after a Player has an item removed from their inventory.
public static Event<ItemRemovedEventArgs> ItemRemoved { get; set; }
Property Value
Joined
Invoked after a Player has joined the server.
public static Event<JoinedEventArgs> Joined { get; set; }
Property Value
Jumping
Invoked before a Player jumps.
public static Event<JumpingEventArgs> Jumping { get; set; }
Property Value
Kicked
Invoked after a Player has been kicked from the server.
public static Event<KickedEventArgs> Kicked { get; set; }
Property Value
Kicking
Invoked before kicking a Player from the server.
public static Event<KickingEventArgs> Kicking { get; set; }
Property Value
Landing
Invoked after a Player lands.
public static Event<LandingEventArgs> Landing { get; set; }
Property Value
Left
Invoked after a Player has left the server.
public static Event<LeftEventArgs> Left { get; set; }
Property Value
MakingNoise
Invoked before a Player makes noise.
public static Event<MakingNoiseEventArgs> MakingNoise { get; set; }
Property Value
OpeningGenerator
Invoked before a Player opens a generator.
public static Event<OpeningGeneratorEventArgs> OpeningGenerator { get; set; }
Property Value
PickingUpItem
Invoked before picking up an Item.
public static Event<PickingUpItemEventArgs> PickingUpItem { get; set; }
Property Value
PlayingAudioLog
Invoked before playing an AudioLog.
public static Event<PlayingAudioLogEventArgs> PlayingAudioLog { get; set; }
Property Value
PreAuthenticating
Invoked before authenticating a Player.
public static Event<PreAuthenticatingEventArgs> PreAuthenticating { get; set; }
Property Value
ReceivingEffect
Invoked before a Player receives a status effect.
public static Event<ReceivingEffectEventArgs> ReceivingEffect { get; set; }
Property Value
ReloadedWeapon
Invoked after a Player reloads a weapon.
public static Event<ReloadedWeaponEventArgs> ReloadedWeapon { get; set; }
Property Value
ReloadingWeapon
Invoked before a Player reloads a weapon.
public static Event<ReloadingWeaponEventArgs> ReloadingWeapon { get; set; }
Property Value
RemovedHandcuffs
Invoked after freeing a handcuffed Player.
public static Event<RemovedHandcuffsEventArgs> RemovedHandcuffs { get; set; }
Property Value
RemovingHandcuffs
Invoked before freeing a handcuffed Player.
public static Event<RemovingHandcuffsEventArgs> RemovingHandcuffs { get; set; }
Property Value
ReservedSlot
Invoked before reserved slot is finalized for a Player.
public static Event<ReservedSlotsCheckEventArgs> ReservedSlot { get; set; }
Property Value
RevokingMute
Invoked before unmuting a user.
public static Event<RevokingMuteEventArgs> RevokingMute { get; set; }
Property Value
RotatingRevolver
Invoked before a Player's rotates the revolver.
public static Event<RotatingRevolverEventArgs> RotatingRevolver { get; set; }
Property Value
SearchingPickup
Invoked before a Player searches a Pickup.
public static Event<SearchingPickupEventArgs> SearchingPickup { get; set; }
Property Value
SendingAdminChatMessage
Invoked before a Player send a message in AdminChat.
public static Event<SendingAdminChatMessageEventsArgs> SendingAdminChatMessage { get; set; }
Property Value
SendingValidCommand
Invoked before a Player sends valid command.
public static Event<SendingValidCommandEventArgs> SendingValidCommand { get; set; }
Property Value
SentValidCommand
Invoked after a Player sends valid command.
public static Event<SentValidCommandEventArgs> SentValidCommand { get; set; }
Property Value
Shooting
Invoked before a Player shoots a weapon.
public static Event<ShootingEventArgs> Shooting { get; set; }
Property Value
Shot
Invoked after a Player gets shot.
public static Event<ShotEventArgs> Shot { get; set; }
Property Value
Spawned
Invoked after a Player has spawned.
public static Event<SpawnedEventArgs> Spawned { get; set; }
Property Value
SpawnedRagdoll
public static Event<SpawnedRagdollEventArgs> SpawnedRagdoll { get; set; }
Property Value
Spawning
Invoked before spawning a Player.
public static Event<SpawningEventArgs> Spawning { get; set; }
Property Value
SpawningRagdoll
public static Event<SpawningRagdollEventArgs> SpawningRagdoll { get; set; }
Property Value
StayingOnEnvironmentalHazard
Invoked when a Player stays on an environmental hazard.
public static Event<StayingOnEnvironmentalHazardEventArgs> StayingOnEnvironmentalHazard { get; set; }
Property Value
StoppingGenerator
Invoked before a Player turns off the generator by switching lever.
public static Event<StoppingGeneratorEventArgs> StoppingGenerator { get; set; }
Property Value
ThrowingRequest
Invoked before receving a throwing request an Throwable.
public static Event<ThrowingRequestEventArgs> ThrowingRequest { get; set; }
Property Value
ThrownProjectile
Invoked afer throwing an Throwable.
public static Event<ThrownProjectileEventArgs> ThrownProjectile { get; set; }
Property Value
TogglingFlashlight
Invoked before a Player toggles the flashlight.
public static Event<TogglingFlashlightEventArgs> TogglingFlashlight { get; set; }
Property Value
TogglingNoClip
Invoked before a Player toggles the NoClip mode.
public static Event<TogglingNoClipEventArgs> TogglingNoClip { get; set; }
Property Value
TogglingOverwatch
Invoked before a Player toggles overwatch.
public static Event<TogglingOverwatchEventArgs> TogglingOverwatch { get; set; }
Property Value
TogglingRadio
Invoked before turning the Radio on/off.
public static Event<TogglingRadioEventArgs> TogglingRadio { get; set; }
Property Value
TogglingWeaponFlashlight
Invoked before a Player toggles the weapon's flashlight.
public static Event<TogglingWeaponFlashlightEventArgs> TogglingWeaponFlashlight { get; set; }
Property Value
Transmitting
Invoked after a Player presses the transmission key.
public static Event<TransmittingEventArgs> Transmitting { get; set; }
Property Value
TriggeringTesla
Invoked before a Player triggers a tesla gate.
public static Event<TriggeringTeslaEventArgs> TriggeringTesla { get; set; }
Property Value
UnloadedWeapon
Invoked after a Player unloads a weapon.
public static Event<UnloadedWeaponEventArgs> UnloadedWeapon { get; set; }
Property Value
UnloadingWeapon
Invoked before a Player unloads a weapon.
public static Event<UnloadingWeaponEventArgs> UnloadingWeapon { get; set; }
Property Value
UnlockingGenerator
Invoked before a Player unlocks a generator.
public static Event<UnlockingGeneratorEventArgs> UnlockingGenerator { get; set; }
Property Value
UsedItem
public static Event<UsedItemEventArgs> UsedItem { get; set; }
Property Value
Remarks
Invoked after UsingItem, if a player's class has changed during their health increase, won't fire.
UsingItem
Invoked before the player starts to use an Usable. In other words, it is invoked just before the animation starts.
public static Event<UsingItemEventArgs> UsingItem { get; set; }
Property Value
Remarks
Will be invoked even if the Usable is on cooldown. Candies are the only Usable that do not invoke this event.
UsingItemCompleted
Invoked before a Player finishes using a Usable. In other words, it is invoked after the animation finishes but before the Usable is actually used.
public static Event<UsingItemCompletedEventArgs> UsingItemCompleted { get; set; }
Property Value
UsingMicroHIDEnergy
Invoked before a Player MicroHID energy is changed.
public static Event<UsingMicroHIDEnergyEventArgs> UsingMicroHIDEnergy { get; set; }
Property Value
UsingRadioBattery
Invoked before a user's radio battery charge is changed.
public static Event<UsingRadioBatteryEventArgs> UsingRadioBattery { get; set; }
Property Value
Verified
Invoked after a Player has been verified.
public static Event<VerifiedEventArgs> Verified { get; set; }
Property Value
VoiceChatting
Invoked after a Player presses the voicechat key.
public static Event<VoiceChattingEventArgs> VoiceChatting { get; set; }
Property Value
Methods
OnActivatingGenerator(ActivatingGeneratorEventArgs)
Called before a Player turns on the generator by switching lever.
public static void OnActivatingGenerator(ActivatingGeneratorEventArgs ev)
Parameters
ev
ActivatingGeneratorEventArgsThe ActivatingGeneratorEventArgs instance.
OnActivatingWarheadPanel(ActivatingWarheadPanelEventArgs)
Called before activating the warhead panel.
public static void OnActivatingWarheadPanel(ActivatingWarheadPanelEventArgs ev)
Parameters
ev
ActivatingWarheadPanelEventArgsThe ActivatingWarheadPanelEventArgs instance.
OnActivatingWorkstation(ActivatingWorkstationEventArgs)
Called before activating a workstation.
public static void OnActivatingWorkstation(ActivatingWorkstationEventArgs ev)
Parameters
ev
ActivatingWorkstationEventArgsThe ActivatingWorkstation instance.
OnAimingDownSight(AimingDownSightEventArgs)
Called before a Player triggers an aim action.
public static void OnAimingDownSight(AimingDownSightEventArgs ev)
Parameters
ev
AimingDownSightEventArgsThe AimingDownSightEventArgs instance.
OnBanned(BannedEventArgs)
Called after a player has been banned from the server.
public static void OnBanned(BannedEventArgs ev)
Parameters
ev
BannedEventArgsThe BannedEventArgs instance.
OnBanning(BanningEventArgs)
Called before banning a Player from the server.
public static void OnBanning(BanningEventArgs ev)
Parameters
ev
BanningEventArgsThe BanningEventArgs instance.
OnCancelledItemUse(CancelledItemUseEventArgs)
public static void OnCancelledItemUse(CancelledItemUseEventArgs ev)
Parameters
ev
CancelledItemUseEventArgsThe CancelledItemUseEventArgs instance.
OnCancellingItemUse(CancellingItemUseEventArgs)
public static void OnCancellingItemUse(CancellingItemUseEventArgs ev)
Parameters
ev
CancellingItemUseEventArgsThe CancellingItemUseEventArgs instance.
OnChangedEmotion(ChangedEmotionEventArgs)
Called after a player's emotion changed.
public static void OnChangedEmotion(ChangedEmotionEventArgs ev)
Parameters
ev
ChangedEmotionEventArgsThe ChangedEmotionEventArgs instance.
OnChangedItem(ChangedItemEventArgs)
Called after a Player held item changes.
public static void OnChangedItem(ChangedItemEventArgs ev)
Parameters
ev
ChangedItemEventArgsThe ChangedItemEventArgs instance.
OnChangingDangerState(ChangingDangerStateEventArgs)
Called before a player's danger state changes.
public static void OnChangingDangerState(ChangingDangerStateEventArgs ev)
Parameters
ev
ChangingDangerStateEventArgsThe ChangingDangerStateEventArgs instance.
OnChangingDisruptorMode(ChangingDisruptorModeEventArgs)
Called before disruptor's mode is changed.
public static void OnChangingDisruptorMode(ChangingDisruptorModeEventArgs ev)
Parameters
ev
ChangingDisruptorModeEventArgsThe ChangingDisruptorModeEventArgs instance.
OnChangingEmotion(ChangingEmotionEventArgs)
Called before a player's emotion changed.
public static void OnChangingEmotion(ChangingEmotionEventArgs ev)
Parameters
ev
ChangingEmotionEventArgsThe ChangingEmotionEventArgs instance.
OnChangingGroup(ChangingGroupEventArgs)
Called before changing a Player group.
public static void OnChangingGroup(ChangingGroupEventArgs ev)
Parameters
ev
ChangingGroupEventArgsThe ChangingGroupEventArgs instance.
OnChangingItem(ChangingItemEventArgs)
Called before a Player held item changes.
public static void OnChangingItem(ChangingItemEventArgs ev)
Parameters
ev
ChangingItemEventArgsThe ChangingItemEventArgs instance.
OnChangingMicroHIDState(ChangingMicroHIDStateEventArgs)
Called before a Player MicroHID state is changed.
public static void OnChangingMicroHIDState(ChangingMicroHIDStateEventArgs ev)
Parameters
ev
ChangingMicroHIDStateEventArgsThe ChangingMicroHIDStateEventArgs instance.
OnChangingMoveState(ChangingMoveStateEventArgs)
Called before a Player changes move state.
public static void OnChangingMoveState(ChangingMoveStateEventArgs ev)
Parameters
ev
ChangingMoveStateEventArgsThe ChangingMoveStateEventArgs instance.
OnChangingNickname(ChangingNicknameEventArgs)
Called before a Player's custom display name is changed.
public static void OnChangingNickname(ChangingNicknameEventArgs ev)
Parameters
ev
ChangingNicknameEventArgsThe ChangingNicknameEventArgs instance.
OnChangingRadioPreset(ChangingRadioPresetEventArgs)
Called before a user's radio preset is changed.
public static void OnChangingRadioPreset(ChangingRadioPresetEventArgs ev)
Parameters
ev
ChangingRadioPresetEventArgsThe ChangingRadioPresetEventArgs instance.
OnChangingRole(ChangingRoleEventArgs)
Called before changing a Player role.
public static void OnChangingRole(ChangingRoleEventArgs ev)
Parameters
ev
ChangingRoleEventArgsThe ChangingRoleEventArgs instance.
Remarks
If IsAllowed is set to false when Escape is true, tickets will still be given to the escapee's team even though they will 'fail' to escape. Use Escaping to block escapes instead.
OnChangingSpectatedPlayer(ChangingSpectatedPlayerEventArgs)
Called after a Player changes spectated player.
public static void OnChangingSpectatedPlayer(ChangingSpectatedPlayerEventArgs ev)
Parameters
ev
ChangingSpectatedPlayerEventArgsThe ChangingSpectatedPlayerEventArgs instance.
OnClosingGenerator(ClosingGeneratorEventArgs)
Called before a Player closes a generator.
public static void OnClosingGenerator(ClosingGeneratorEventArgs ev)
Parameters
ev
ClosingGeneratorEventArgsThe ClosingGeneratorEventArgs instance.
OnDamagingDoor(DamagingDoorEventArgs)
Called before a Player damage a window.
public static void OnDamagingDoor(DamagingDoorEventArgs ev)
Parameters
ev
DamagingDoorEventArgsThe DamagingDoorEventArgs instance.
OnDamagingShootingTarget(DamagingShootingTargetEventArgs)
Called before a Player damages a shooting target.
public static void OnDamagingShootingTarget(DamagingShootingTargetEventArgs ev)
Parameters
ev
DamagingShootingTargetEventArgsThe DamagingShootingTargetEventArgs instance.
OnDamagingWindow(DamagingWindowEventArgs)
Called before a Player damage a window.
public static void OnDamagingWindow(DamagingWindowEventArgs ev)
Parameters
ev
DamagingWindowEventArgsThe DamagingWindowEventArgs instance.
OnDeactivatingWorkstation(DeactivatingWorkstationEventArgs)
Called before deactivating a workstation.
public static void OnDeactivatingWorkstation(DeactivatingWorkstationEventArgs ev)
Parameters
ev
DeactivatingWorkstationEventArgsThe DeactivatingWorkstationEventArgs instance.
OnDestroying(DestroyingEventArgs)
Called before destroying a Player.
public static void OnDestroying(DestroyingEventArgs ev)
Parameters
ev
DestroyingEventArgsThe DestroyingEventArgs instance.
OnDied(DiedEventArgs)
Called after a Player died.
public static void OnDied(DiedEventArgs ev)
Parameters
ev
DiedEventArgsThe DiedEventArgs instance.
OnDrinkingCoffee(DrinkingCoffeeEventArgs)
Called before player interacts with coffee cup.
[Obsolete("Never available (for now).")]
public static void OnDrinkingCoffee(DrinkingCoffeeEventArgs ev)
Parameters
ev
DrinkingCoffeeEventArgsThe DrinkingCoffeeEventArgs instance.
OnDroppedAmmo(DroppedAmmoEventArgs)
Called after dropping ammo.
public static void OnDroppedAmmo(DroppedAmmoEventArgs ev)
Parameters
ev
DroppedAmmoEventArgsThe DroppedAmmoEventArgs instance.
OnDroppedItem(DroppedItemEventArgs)
Called after dropping an item.
public static void OnDroppedItem(DroppedItemEventArgs ev)
Parameters
ev
DroppedItemEventArgsThe DroppedItemEventArgs instance.
OnDroppingAmmo(DroppingAmmoEventArgs)
Called before dropping ammo.
public static void OnDroppingAmmo(DroppingAmmoEventArgs ev)
Parameters
ev
DroppingAmmoEventArgsThe DroppingAmmoEventArgs instance.
OnDroppingItem(DroppingItemEventArgs)
Called before dropping an item.
public static void OnDroppingItem(DroppingItemEventArgs ev)
Parameters
ev
DroppingItemEventArgsThe DroppingItemEventArgs instance.
OnDroppingNothing(DroppingNothingEventArgs)
Called before dropping a null item.
public static void OnDroppingNothing(DroppingNothingEventArgs ev)
Parameters
ev
DroppingNothingEventArgsThe DroppingNothingEventArgs instance.
OnDryfiringWeapon(DryfiringWeaponEventArgs)
Called before a Player dryfires a weapon.
public static void OnDryfiringWeapon(DryfiringWeaponEventArgs ev)
Parameters
ev
DryfiringWeaponEventArgsThe DryfiringWeaponEventArgs instance.
OnDying(DyingEventArgs)
Called before a Player dies.
public static void OnDying(DyingEventArgs ev)
Parameters
ev
DyingEventArgsThe DyingEventArgs instance.
OnEarningAchievement(EarningAchievementEventArgs)
Called before a Player earns an achievement.
public static void OnEarningAchievement(EarningAchievementEventArgs ev)
Parameters
ev
EarningAchievementEventArgsThe EarningAchievementEventArgs instance.
OnEnteringEnvironmentalHazard(EnteringEnvironmentalHazardEventArgs)
Called before a Player enters in an environmental hazard.
public static void OnEnteringEnvironmentalHazard(EnteringEnvironmentalHazardEventArgs ev)
Parameters
ev
EnteringEnvironmentalHazardEventArgsThe EnteringEnvironmentalHazardEventArgs instance.
OnEnteringKillerCollision(EnteringKillerCollisionEventArgs)
Called before a Player enters killer collision.
public static void OnEnteringKillerCollision(EnteringKillerCollisionEventArgs ev)
Parameters
ev
EnteringKillerCollisionEventArgsThe EnteringKillerCollisionEventArgs instance.
OnEnteringPocketDimension(EnteringPocketDimensionEventArgs)
Called before a Player enters the pocket dimension.
public static void OnEnteringPocketDimension(EnteringPocketDimensionEventArgs ev)
Parameters
ev
EnteringPocketDimensionEventArgsThe EnteringPocketDimensionEventArgs instance.
OnEscaped(EscapedEventArgs)
Called after a Player escapes.
public static void OnEscaped(EscapedEventArgs ev)
Parameters
ev
EscapedEventArgsThe EscapedEventArgs instance.
OnEscaping(EscapingEventArgs)
Called before a Player escapes.
public static void OnEscaping(EscapingEventArgs ev)
Parameters
ev
EscapingEventArgsThe EscapingEventArgs instance.
OnEscapingPocketDimension(EscapingPocketDimensionEventArgs)
Called before a Player escapes the pocket dimension.
public static void OnEscapingPocketDimension(EscapingPocketDimensionEventArgs ev)
Parameters
ev
EscapingPocketDimensionEventArgsThe EscapingPocketDimensionEventArgs instance.
OnExitingEnvironmentalHazard(ExitingEnvironmentalHazardEventArgs)
Called before a Player exits from an environmental hazard.
public static void OnExitingEnvironmentalHazard(ExitingEnvironmentalHazardEventArgs ev)
Parameters
ev
ExitingEnvironmentalHazardEventArgsThe ExitingEnvironmentalHazardEventArgs instance.
OnFailingEscapePocketDimension(FailingEscapePocketDimensionEventArgs)
Called before a Player fails to escape the pocket dimension.
public static void OnFailingEscapePocketDimension(FailingEscapePocketDimensionEventArgs ev)
Parameters
OnFlippingCoin(FlippingCoinEventArgs)
Called before a Player flips a coin.
public static void OnFlippingCoin(FlippingCoinEventArgs ev)
Parameters
ev
FlippingCoinEventArgsThe FlippingCoinEventArgs instance.
OnHandcuffing(HandcuffingEventArgs)
Called before handcuffing a Player.
public static void OnHandcuffing(HandcuffingEventArgs ev)
Parameters
ev
HandcuffingEventArgsThe HandcuffingEventArgs instance.
OnHealed(HealedEventArgs)
Called after a Player is healed.
public static void OnHealed(HealedEventArgs ev)
Parameters
ev
HealedEventArgsThe HealedEventArgs instance.
OnHealing(HealingEventArgs)
Called before a Player is healed.
public static void OnHealing(HealingEventArgs ev)
Parameters
ev
HealingEventArgsThe HealingEventArgs instance.
OnHurt(HurtEventArgs)
Called ater a Player being hurt.
public static void OnHurt(HurtEventArgs ev)
Parameters
ev
HurtEventArgsThe HurtingEventArgs instance.
OnHurting(HurtingEventArgs)
Called before hurting a player.
public static void OnHurting(HurtingEventArgs ev)
Parameters
ev
HurtingEventArgsThe HurtingEventArgs instance.
OnInteracted(InteractedEventArgs)
Called after a Player interacted with something.
public static void OnInteracted(InteractedEventArgs ev)
Parameters
ev
InteractedEventArgsThe InteractedEventArgs instance.
OnInteractingDoor(InteractingDoorEventArgs)
Called before a Player interacts with a door.
public static void OnInteractingDoor(InteractingDoorEventArgs ev)
Parameters
ev
InteractingDoorEventArgsThe InteractingDoorEventArgs instance.
OnInteractingElevator(InteractingElevatorEventArgs)
Called before a Player interacts with an elevator.
public static void OnInteractingElevator(InteractingElevatorEventArgs ev)
Parameters
ev
InteractingElevatorEventArgsThe InteractingElevatorEventArgs instance.
OnInteractingLocker(InteractingLockerEventArgs)
Called before a Player interacts with a locker.
public static void OnInteractingLocker(InteractingLockerEventArgs ev)
Parameters
ev
InteractingLockerEventArgsThe InteractingLockerEventArgs instance.
OnInteractingShootingTarget(InteractingShootingTargetEventArgs)
Called before a Player interacts with a shooting target.
public static void OnInteractingShootingTarget(InteractingShootingTargetEventArgs ev)
Parameters
ev
InteractingShootingTargetEventArgsThe InteractingShootingTargetEventArgs instance.
OnIntercomSpeaking(IntercomSpeakingEventArgs)
Called before a Player begins speaking to the intercom.
public static void OnIntercomSpeaking(IntercomSpeakingEventArgs ev)
Parameters
ev
IntercomSpeakingEventArgsThe IntercomSpeakingEventArgs instance.
OnIssuingMute(IssuingMuteEventArgs)
Called before muting a user.
public static void OnIssuingMute(IssuingMuteEventArgs ev)
Parameters
ev
IssuingMuteEventArgsThe IssuingMuteEventArgs instance.
OnItemAdded(ReferenceHub, ItemBase, ItemPickupBase)
Called after a Player has an item added to their inventory.
public static void OnItemAdded(ReferenceHub referenceHub, ItemBase itemBase, ItemPickupBase pickupBase)
Parameters
referenceHub
ReferenceHubThe ReferenceHub the item was added to.
itemBase
ItemBaseThe added InventorySystem.Items.ItemBase.
pickupBase
ItemPickupBaseThe InventorySystem.Items.Pickups.ItemPickupBase the InventorySystem.Items.ItemBase originated from, or null if the item was not picked up.
OnItemRemoved(ReferenceHub, ItemBase, ItemPickupBase)
Called after a Player has an item removed from their inventory.
public static void OnItemRemoved(ReferenceHub referenceHub, ItemBase itemBase, ItemPickupBase pickupBase)
Parameters
referenceHub
ReferenceHubThe ReferenceHub the item was removed from.
itemBase
ItemBaseThe removed InventorySystem.Items.ItemBase.
pickupBase
ItemPickupBaseThe InventorySystem.Items.Pickups.ItemPickupBase the InventorySystem.Items.ItemBase originated from, or null if the item was not picked up.
OnJoined(JoinedEventArgs)
Called after a Player has joined the server.
public static void OnJoined(JoinedEventArgs ev)
Parameters
ev
JoinedEventArgsThe JoinedEventArgs instance.
OnJumping(JumpingEventArgs)
Called before a Player jumps.
public static void OnJumping(JumpingEventArgs ev)
Parameters
ev
JumpingEventArgsThe JumpingEventArgs instance.
OnKicked(KickedEventArgs)
Called after a Player has been kicked from the server.
public static void OnKicked(KickedEventArgs ev)
Parameters
ev
KickedEventArgsThe KickedEventArgs instance.
OnKicking(KickingEventArgs)
Called before kicking a Player from the server.
public static void OnKicking(KickingEventArgs ev)
Parameters
ev
KickingEventArgsThe KickingEventArgs instance.
OnLanding(LandingEventArgs)
Called after a Player lands.
public static void OnLanding(LandingEventArgs ev)
Parameters
ev
LandingEventArgsThe LandingEventArgs instance.
OnLeft(LeftEventArgs)
Called after a Player has left the server.
public static void OnLeft(LeftEventArgs ev)
Parameters
ev
LeftEventArgsThe LeftEventArgs instance.
OnMakingNoise(MakingNoiseEventArgs)
Called before a Player makes noise.
public static void OnMakingNoise(MakingNoiseEventArgs ev)
Parameters
ev
MakingNoiseEventArgsThe MakingNoiseEventArgs instance.
OnOpeningGenerator(OpeningGeneratorEventArgs)
Called before a Player opens a generator.
public static void OnOpeningGenerator(OpeningGeneratorEventArgs ev)
Parameters
ev
OpeningGeneratorEventArgsThe OpeningGeneratorEventArgs instance.
OnPickingUpItem(PickingUpItemEventArgs)
Called before a Player picks up an item.
public static void OnPickingUpItem(PickingUpItemEventArgs ev)
Parameters
ev
PickingUpItemEventArgsThe PickingUpItemEventArgs instance.
OnPlayingAudioLog(PlayingAudioLogEventArgs)
Called before a Player plays an AudioLog.
public static void OnPlayingAudioLog(PlayingAudioLogEventArgs ev)
Parameters
ev
PlayingAudioLogEventArgsThe PlayingAudioLogEventArgs instance.
OnPreAuthenticating(PreAuthenticatingEventArgs)
Called before pre-authenticating a Player.
public static void OnPreAuthenticating(PreAuthenticatingEventArgs ev)
Parameters
ev
PreAuthenticatingEventArgsinstance.
OnReceivingEffect(ReceivingEffectEventArgs)
Called before a Player receives a status effect.
public static void OnReceivingEffect(ReceivingEffectEventArgs ev)
Parameters
ev
ReceivingEffectEventArgsThe ReceivingEffectEventArgs instance.
OnReloadedWeapon(ReloadedWeaponEventArgs)
Called after a Player reloads a weapon.
public static void OnReloadedWeapon(ReloadedWeaponEventArgs ev)
Parameters
ev
ReloadedWeaponEventArgsThe ReloadedWeaponEventArgs instance.
OnReloadingWeapon(ReloadingWeaponEventArgs)
Called before a Player reloads a weapon.
public static void OnReloadingWeapon(ReloadingWeaponEventArgs ev)
Parameters
ev
ReloadingWeaponEventArgsThe ReloadingWeaponEventArgs instance.
OnRemovedHandcuffs(RemovedHandcuffsEventArgs)
Called after freeing a handcuffed Player.
public static void OnRemovedHandcuffs(RemovedHandcuffsEventArgs ev)
Parameters
ev
RemovedHandcuffsEventArgsThe RemovedHandcuffsEventArgs instance.
OnRemovingHandcuffs(RemovingHandcuffsEventArgs)
Called before freeing a handcuffed Player.
public static void OnRemovingHandcuffs(RemovingHandcuffsEventArgs ev)
Parameters
ev
RemovingHandcuffsEventArgsThe RemovingHandcuffsEventArgs instance.
OnReservedSlot(ReservedSlotsCheckEventArgs)
Called before reserved slot is resolved for a Player.
public static void OnReservedSlot(ReservedSlotsCheckEventArgs ev)
Parameters
ev
ReservedSlotsCheckEventArgsThe ReservedSlotsCheckEventArgs instance.
OnRevokingMute(RevokingMuteEventArgs)
Called before unmuting a user.
public static void OnRevokingMute(RevokingMuteEventArgs ev)
Parameters
ev
RevokingMuteEventArgsThe RevokingMuteEventArgs instance.
OnRotatingRevolver(RotatingRevolverEventArgs)
Called before a Player's rotates the revolver.
public static void OnRotatingRevolver(RotatingRevolverEventArgs ev)
Parameters
ev
RotatingRevolverEventArgsThe RotatingRevolverEventArgs instance.
OnSearchPickupRequest(SearchingPickupEventArgs)
Called before a Player searches a Pickup.
public static void OnSearchPickupRequest(SearchingPickupEventArgs ev)
Parameters
ev
SearchingPickupEventArgsThe SearchingPickupEventArgs instance.
OnSendingAdminChatMessage(SendingAdminChatMessageEventsArgs)
Called before a Player searches a Pickup.
public static void OnSendingAdminChatMessage(SendingAdminChatMessageEventsArgs ev)
Parameters
ev
SendingAdminChatMessageEventsArgsThe SendingAdminChatMessageEventsArgs instance.
OnSendingValidCommand(SendingValidCommandEventArgs)
Called before a Player sends valid command.
public static void OnSendingValidCommand(SendingValidCommandEventArgs ev)
Parameters
ev
SendingValidCommandEventArgsThe SendingValidCommandEventArgs instance.
OnSentValidCommand(SentValidCommandEventArgs)
Called after a Player sends valid command.
public static void OnSentValidCommand(SentValidCommandEventArgs ev)
Parameters
ev
SentValidCommandEventArgsThe SentValidCommandEventArgs instance.
OnShooting(ShootingEventArgs)
Called before a Player shoots a weapon.
public static void OnShooting(ShootingEventArgs ev)
Parameters
ev
ShootingEventArgsThe ShootingEventArgs instance.
OnShot(ShotEventArgs)
Called after a Player shoots a weapon.
public static void OnShot(ShotEventArgs ev)
Parameters
ev
ShotEventArgsThe ShotEventArgs instance.
OnSpawned(SpawnedEventArgs)
Called after a Player has spawned.
public static void OnSpawned(SpawnedEventArgs ev)
Parameters
ev
SpawnedEventArgsThe SpawnedEventArgs instance.
OnSpawnedRagdoll(SpawnedRagdollEventArgs)
Called after spawning a Player ragdoll.
public static void OnSpawnedRagdoll(SpawnedRagdollEventArgs ev)
Parameters
ev
SpawnedRagdollEventArgsThe SpawnedRagdollEventArgs instance.
OnSpawning(SpawningEventArgs)
Called before spawning a Player.
public static void OnSpawning(SpawningEventArgs ev)
Parameters
ev
SpawningEventArgsThe SpawningEventArgs instance.
OnSpawningRagdoll(SpawningRagdollEventArgs)
Called before spawning a Player ragdoll.
public static void OnSpawningRagdoll(SpawningRagdollEventArgs ev)
Parameters
ev
SpawningRagdollEventArgsThe SpawningRagdollEventArgs instance.
OnStayingOnEnvironmentalHazard(StayingOnEnvironmentalHazardEventArgs)
Called when a Player stays on an environmental hazard.
public static void OnStayingOnEnvironmentalHazard(StayingOnEnvironmentalHazardEventArgs ev)
Parameters
OnStoppingGenerator(StoppingGeneratorEventArgs)
Called before a Player turns off the generator by switching lever.
public static void OnStoppingGenerator(StoppingGeneratorEventArgs ev)
Parameters
ev
StoppingGeneratorEventArgsThe StoppingGeneratorEventArgs instance.
OnThrowingRequest(ThrowingRequestEventArgs)
Called before receving a throwing request.
public static void OnThrowingRequest(ThrowingRequestEventArgs ev)
Parameters
ev
ThrowingRequestEventArgsThe ThrowingRequestEventArgs instance.
OnThrownProjectile(ThrownProjectileEventArgs)
Called before throwing a grenade.
public static void OnThrownProjectile(ThrownProjectileEventArgs ev)
Parameters
ev
ThrownProjectileEventArgsThe ThrownProjectileEventArgs instance.
OnTogglingFlashlight(TogglingFlashlightEventArgs)
Called before a Player toggles the flashlight.
public static void OnTogglingFlashlight(TogglingFlashlightEventArgs ev)
Parameters
ev
TogglingFlashlightEventArgsThe TogglingFlashlightEventArgs instance.
OnTogglingNoClip(TogglingNoClipEventArgs)
Called before a Player toggles the NoClip mode.
public static void OnTogglingNoClip(TogglingNoClipEventArgs ev)
Parameters
ev
TogglingNoClipEventArgsThe TogglingNoClipEventArgs instance.
OnTogglingOverwatch(TogglingOverwatchEventArgs)
Called before a Player toggles overwatch.
public static void OnTogglingOverwatch(TogglingOverwatchEventArgs ev)
Parameters
ev
TogglingOverwatchEventArgsThe TogglingOverwatchEventArgs instance.
OnTogglingRadio(TogglingRadioEventArgs)
Called before turning the radio on/off.
public static void OnTogglingRadio(TogglingRadioEventArgs ev)
Parameters
ev
TogglingRadioEventArgsThe TogglingRadioEventArgs instance.
OnTogglingWeaponFlashlight(TogglingWeaponFlashlightEventArgs)
Called before a Player toggles the weapon's flashlight.
public static void OnTogglingWeaponFlashlight(TogglingWeaponFlashlightEventArgs ev)
Parameters
ev
TogglingWeaponFlashlightEventArgsThe TogglingWeaponFlashlightEventArgs instance.
OnTransmitting(TransmittingEventArgs)
Called after a Player presses the transmission key.
public static void OnTransmitting(TransmittingEventArgs ev)
Parameters
ev
TransmittingEventArgsThe TransmittingEventArgs instance.
OnTriggeringTesla(TriggeringTeslaEventArgs)
Called before a Player triggers a tesla.
public static void OnTriggeringTesla(TriggeringTeslaEventArgs ev)
Parameters
ev
TriggeringTeslaEventArgsThe TriggeringTeslaEventArgs instance.
OnUnloadedWeapon(UnloadedWeaponEventArgs)
Called after a Player unloads a weapon.
public static void OnUnloadedWeapon(UnloadedWeaponEventArgs ev)
Parameters
ev
UnloadedWeaponEventArgsThe UnloadedWeaponEventArgs instance.
OnUnloadingWeapon(UnloadingWeaponEventArgs)
Called before a Player unloads a weapon.
public static void OnUnloadingWeapon(UnloadingWeaponEventArgs ev)
Parameters
ev
UnloadingWeaponEventArgsThe UnloadingWeaponEventArgs instance.
OnUnlockingGenerator(UnlockingGeneratorEventArgs)
Called before a Player unlocks a generator.
public static void OnUnlockingGenerator(UnlockingGeneratorEventArgs ev)
Parameters
ev
UnlockingGeneratorEventArgsThe UnlockingGeneratorEventArgs instance.
OnUsedItem(UsedItemEventArgs)
public static void OnUsedItem(UsedItemEventArgs ev)
Parameters
ev
UsedItemEventArgsThe UsedItemEventArgs instance.
OnUsingItem(UsingItemEventArgs)
Called before using a usable item.
public static void OnUsingItem(UsingItemEventArgs ev)
Parameters
ev
UsingItemEventArgsThe UsingItemEventArgs instance.
OnUsingItemCompleted(UsingItemCompletedEventArgs)
Called before completed using of a usable item.
public static void OnUsingItemCompleted(UsingItemCompletedEventArgs ev)
Parameters
ev
UsingItemCompletedEventArgsThe UsingItemEventArgs instance.
OnUsingMicroHIDEnergy(UsingMicroHIDEnergyEventArgs)
Called before a Player MicroHID energy is changed.
public static void OnUsingMicroHIDEnergy(UsingMicroHIDEnergyEventArgs ev)
Parameters
ev
UsingMicroHIDEnergyEventArgsThe UsingMicroHIDEnergyEventArgs instance.
OnUsingRadioBattery(UsingRadioBatteryEventArgs)
Called before a user's radio battery charge is changed.
public static void OnUsingRadioBattery(UsingRadioBatteryEventArgs ev)
Parameters
ev
UsingRadioBatteryEventArgsThe UsingRadioBatteryEventArgs instance.
OnVerified(VerifiedEventArgs)
Called after a Player has been verified.
public static void OnVerified(VerifiedEventArgs ev)
Parameters
ev
VerifiedEventArgsThe VerifiedEventArgs instance.
OnVoiceChatting(VoiceChattingEventArgs)
Invoked after a Player presses the voicechat key.
public static void OnVoiceChatting(VoiceChattingEventArgs ev)
Parameters
ev
VoiceChattingEventArgsThe VoiceChattingEventArgs instance.