Class ConsumingCorpseEventArgs
Contains all information before zombie consumes a ragdoll.
Inheritance
System.Object
ConsumingCorpseEventArgs
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Exiled.Events.EventArgs.Scp0492
Assembly: Exiled.Events.dll
Syntax
public class ConsumingCorpseEventArgs : IScp0492Event, IPlayerEvent, IRagdollEvent, IDeniableEvent, IExiledEvent
Constructors
| Improve this Doc View SourceConsumingCorpseEventArgs(ReferenceHub, BasicRagdoll, ZombieConsumeAbility.ConsumeError, Boolean)
Initializes a new instance of the ConsumingCorpseEventArgs class.
Declaration
public ConsumingCorpseEventArgs(ReferenceHub player, BasicRagdoll ragDoll, ZombieConsumeAbility.ConsumeError error, bool isAllowed = true)
Parameters
Type | Name | Description |
---|---|---|
ReferenceHub | player | |
PlayerRoles.Ragdolls.BasicRagdoll | ragDoll | |
PlayerRoles.PlayableScps.Scp049.Zombies.ZombieConsumeAbility.ConsumeError | error | |
System.Boolean | isAllowed |
Remarks
See PlayerRoles.PlayableScps.Scp049.Zombies.ZombieConsumeAbility.ConsumedRagdolls for all ragdolls consumed.
Properties
| Improve this Doc View SourceErrorCode
Gets or sets error code to send back to client.
Declaration
public ZombieConsumeAbility.ConsumeError ErrorCode { get; set; }
Property Value
Type | Description |
---|---|
PlayerRoles.PlayableScps.Scp049.Zombies.ZombieConsumeAbility.ConsumeError |
IsAllowed
Gets or sets a value indicating whether 049-2 can consume a corpse.
Declaration
public bool IsAllowed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Player
Gets the player who is controlling SCP-049-2.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |
Ragdoll
Gets the ragdoll to be consumed.
Declaration
public Ragdoll Ragdoll { get; }
Property Value
Type | Description |
---|---|
Ragdoll |
Scp0492
Declaration
public Scp0492Role Scp0492 { get; }
Property Value
Type | Description |
---|---|
Scp0492Role |