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

Class UnturnedZombieDamagingEvent

The event that is triggered when damage is dealt to a zombie.

Inheritance
System.Object
UnturnedZombieEvent
UnturnedZombieDamagingEvent
UnturnedZombieDyingEvent
Implements
ICancellableEvent
Inherited Members
UnturnedZombieEvent.Zombie
Namespace: OpenMod.Unturned.Zombies.Events
Assembly: OpenMod.Unturned.dll
Syntax
public class UnturnedZombieDamagingEvent : UnturnedZombieEvent, ICancellableEvent

Constructors

| Improve this Doc View Source

UnturnedZombieDamagingEvent(UnturnedZombie, UnturnedPlayer, UInt16, Vector3, ERagdollEffect, EZombieStunOverride, ELimb)

Declaration
public UnturnedZombieDamagingEvent(UnturnedZombie zombie, UnturnedPlayer user, ushort damageAmount, Vector3 ragdoll, ERagdollEffect ragdollEffect, EZombieStunOverride stunOverride, ELimb limb)
Parameters
Type Name Description
UnturnedZombie zombie
UnturnedPlayer user
System.UInt16 damageAmount
Vector3 ragdoll
ERagdollEffect ragdollEffect
EZombieStunOverride stunOverride
ELimb limb

Properties

| Improve this Doc View Source

DamageAmount

Gets or sets the amount of damage to deal.

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

Instigator

Gets or sets the player dealing the damage.

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

IsCancelled

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

Limb

Gets or sets the ELimb.

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

Ragdoll

Gets or sets the ragdoll position.

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

RagdollEffect

Gets or sets the ragdoll effect.

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

StunOverride

Gets or sets the stun override.

Declaration
public EZombieStunOverride StunOverride { get; set; }
Property Value
Type Description
EZombieStunOverride

Implements

ICancellableEvent

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)