Class SpawningRagdollEventArgs
Contains all information before spawning a player ragdoll.
Inheritance
System.Object
SpawningRagdollEventArgs
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.Player
Assembly: Exiled.Events.dll
Syntax
public class SpawningRagdollEventArgs : IPlayerEvent, IDeniableEvent, IExiledEvent
Constructors
| Improve this Doc View SourceSpawningRagdollEventArgs(RagdollData, DamageHandlerBase, Boolean)
Initializes a new instance of the SpawningRagdollEventArgs class.
Declaration
public SpawningRagdollEventArgs(RagdollData info, DamageHandlerBase damageHandlerBase, bool isAllowed = true)
Parameters
Type | Name | Description |
---|---|---|
PlayerRoles.Ragdolls.RagdollData | info | |
PlayerStatsSystem.DamageHandlerBase | damageHandlerBase | |
System.Boolean | isAllowed |
Properties
| Improve this Doc View SourceCreationTime
Gets the ragdoll's creation time.
Declaration
public double CreationTime { get; }
Property Value
Type | Description |
---|---|
System.Double |
DamageHandlerBase
Gets or sets the ragdoll's PlayerStatsSystem.DamageHandlerBase.
Declaration
public DamageHandlerBase DamageHandlerBase { get; set; }
Property Value
Type | Description |
---|---|
PlayerStatsSystem.DamageHandlerBase |
Info
Gets or sets the ragdoll's PlayerRoles.Ragdolls.RagdollData.
Declaration
public RagdollData Info { get; set; }
Property Value
Type | Description |
---|---|
PlayerRoles.Ragdolls.RagdollData |
IsAllowed
Gets or sets a value indicating whether or not the ragdoll can be spawned.
Declaration
public bool IsAllowed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Nickname
Gets or sets the ragdoll's nickname.
Declaration
public string Nickname { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Player
Gets the Owner of the ragdoll.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |
Position
Gets or sets the spawning position of the ragdoll.
Declaration
public Vector3 Position { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.Vector3 |
Role
Gets or sets the ragdoll's PlayerRoles.RoleTypeId.
Declaration
public RoleTypeId Role { get; set; }
Property Value
Type | Description |
---|---|
PlayerRoles.RoleTypeId |
Rotation
Gets or sets the ragdoll's rotation.
Declaration
public Quaternion Rotation { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.Quaternion |
Scale
Gets or sets the ragdoll's scale.
Declaration
public Vector3 Scale { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.Vector3 |