Table of Contents

Class ConsumingCorpseEventArgs

Namespace
Exiled.Events.EventArgs.Scp0492
Assembly
Exiled.Events.dll

Contains all information before zombie consumes a ragdoll.

public class ConsumingCorpseEventArgs : IScp0492Event, IPlayerEvent, IRagdollEvent, IDeniableEvent, IExiledEvent
Inheritance
ConsumingCorpseEventArgs
Implements
Inherited Members
Extension Methods

Constructors

ConsumingCorpseEventArgs(ReferenceHub, BasicRagdoll, ConsumeError, bool)

Initializes a new instance of the ConsumingCorpseEventArgs class.

public ConsumingCorpseEventArgs(ReferenceHub player, BasicRagdoll ragDoll, ZombieConsumeAbility.ConsumeError error, bool isAllowed = true)

Parameters

player ReferenceHub
ragDoll BasicRagdoll
error ZombieConsumeAbility.ConsumeError
isAllowed bool

Remarks

See PlayerRoles.PlayableScps.Scp049.Zombies.ZombieConsumeAbility.ConsumedRagdolls for all ragdolls consumed.

Properties

ErrorCode

Gets or sets error code to send back to client.

public ZombieConsumeAbility.ConsumeError ErrorCode { get; set; }

Property Value

ZombieConsumeAbility.ConsumeError

IsAllowed

Gets or sets a value indicating whether 049-2 can consume a corpse.

public bool IsAllowed { get; set; }

Property Value

bool

Player

Gets the player who is controlling SCP-049-2.

public Player Player { get; }

Property Value

Player

Ragdoll

Gets the ragdoll to be consumed.

public Ragdoll Ragdoll { get; }

Property Value

Ragdoll

Scp0492

Gets the Scp0492Role triggering the event.

public Scp0492Role Scp0492 { get; }

Property Value

Scp0492Role