OpenMod Docs OpenMod Docs
OpenMod Docs OpenMod Docs
OpenMod .NET Plugin Framework.

Class UnturnedPlayerDamagingEvent

Inheritance
System.Object
UnturnedPlayerEvent
UnturnedPlayerDamagingEvent
UnturnedPlayerDyingEvent
Implements
IPlayerDamagingEvent
IPlayerEvent
IEvent
ICancellableEvent
Inherited Members
UnturnedPlayerEvent.Player
UnturnedPlayerEvent.IPlayerEvent.Player
Namespace: OpenMod.Unturned.Players.Life.Events
Assembly: OpenMod.Unturned.dll
Syntax
public class UnturnedPlayerDamagingEvent : UnturnedPlayerEvent, IPlayerDamagingEvent, IPlayerEvent, IEvent, ICancellableEvent

Constructors

| Improve this Doc View Source

UnturnedPlayerDamagingEvent(UnturnedPlayer, Byte, EDeathCause, ELimb, CSteamID, IDamageSource, Boolean, System.Numerics.Vector3, ERagdollEffect, Boolean)

Declaration
public UnturnedPlayerDamagingEvent(UnturnedPlayer player, byte amount, EDeathCause cause, ELimb limb, CSteamID killer, IDamageSource source, bool trackKill, System.Numerics.Vector3 ragdoll, ERagdollEffect ragdollEffect, bool canCauseBleeding)
Parameters
Type Name Description
UnturnedPlayer player
System.Byte amount
EDeathCause cause
ELimb limb
CSteamID killer
IDamageSource source
System.Boolean trackKill
System.Numerics.Vector3 ragdoll
ERagdollEffect ragdollEffect
System.Boolean canCauseBleeding

Properties

| Improve this Doc View Source

CanCauseBleeding

Declaration
public bool CanCauseBleeding { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Cause

Declaration
public EDeathCause Cause { get; set; }
Property Value
Type Description
EDeathCause
| Improve this Doc View Source

DamageAmount

Declaration
public byte DamageAmount { get; set; }
Property Value
Type Description
System.Byte
| Improve this Doc View Source

DamageSource

Declaration
public IDamageSource DamageSource { get; }
Property Value
Type Description
IDamageSource
| Improve this Doc View Source

IsCancelled

Declaration
public bool IsCancelled { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Killer

Declaration
public CSteamID Killer { get; set; }
Property Value
Type Description
CSteamID
| Improve this Doc View Source

Limb

Declaration
public ELimb Limb { get; set; }
Property Value
Type Description
ELimb
| Improve this Doc View Source

Ragdoll

Declaration
public System.Numerics.Vector3 Ragdoll { get; set; }
Property Value
Type Description
System.Numerics.Vector3
| Improve this Doc View Source

RagdollEffect

Declaration
public ERagdollEffect RagdollEffect { get; set; }
Property Value
Type Description
ERagdollEffect
| Improve this Doc View Source

TrackKill

Declaration
public bool TrackKill { get; set; }
Property Value
Type Description
System.Boolean

Explicit Interface Implementations

| Improve this Doc View Source

IPlayerDamagingEvent.DamageAmount

Declaration
double IPlayerDamagingEvent.DamageAmount { get; set; }
Returns
Type Description
System.Double

Implements

IPlayerDamagingEvent
IPlayerEvent
IEvent
ICancellableEvent

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)