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 |
---|---|---|
Unturned |
zombie | |
Unturned |
user | |
System. |
damageAmount | |
Vector3 | ragdoll | |
ERagdoll |
ragdollEffect | |
EZombie |
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. |
Instigator
Gets or sets the player dealing the damage.
Declaration
public UnturnedPlayer Instigator { get; set; }
Property Value
Type | Description |
---|---|
Unturned |
IsCancelled
Declaration
public bool IsCancelled { get; set; }
Property Value
Type | Description |
---|---|
System. |
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 |
---|---|
ERagdoll |
StunOverride
Gets or sets the stun override.
Declaration
public EZombieStunOverride StunOverride { get; set; }
Property Value
Type | Description |
---|---|
EZombie |
Implements
ICancellableEvent