Class UnturnedZombieDamagingEvent
The event that is triggered when damage is dealt to a zombie.
Implements
ICancellableEvent
Inherited Members
Namespace: OpenMod.Unturned.Zombies.Events
Assembly: OpenMod.Unturned.dll
Syntax
public class UnturnedZombieDamagingEvent : UnturnedZombieEvent, ICancellableEvent
Constructors
| Improve this Doc View SourceUnturnedZombieDamagingEvent(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 SourceDamageAmount
Gets or sets the amount of damage to deal.
Declaration
public ushort DamageAmount { get; set; }
Property Value
Type | Description |
---|---|
System.UInt16 |
Instigator
Gets or sets the player dealing the damage.
Declaration
public UnturnedPlayer Instigator { get; set; }
Property Value
Type | Description |
---|---|
UnturnedPlayer |
IsCancelled
Declaration
public bool IsCancelled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Limb
Gets or sets the ELimb.
Declaration
public ELimb Limb { get; set; }
Property Value
Type | Description |
---|---|
ELimb |
Ragdoll
Gets or sets the ragdoll position.
Declaration
public Vector3 Ragdoll { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
RagdollEffect
Gets or sets the ragdoll effect.
Declaration
public ERagdollEffect RagdollEffect { get; set; }
Property Value
Type | Description |
---|---|
ERagdollEffect |
StunOverride
Gets or sets the stun override.
Declaration
public EZombieStunOverride StunOverride { get; set; }
Property Value
Type | Description |
---|---|
EZombieStunOverride |
Implements
ICancellableEvent