Search Results for

    Show / Hide Table of Contents

    Class SpawningEventArgs

    Contains all information before spawning a player.

    Inheritance
    System.Object
    SpawningEventArgs
    Implements
    IPlayerEvent
    IExiledEvent
    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 SpawningEventArgs : IPlayerEvent, IExiledEvent

    Constructors

    | Improve this Doc View Source

    SpawningEventArgs(Player, Vector3, Single, PlayerRoleBase)

    Initializes a new instance of the SpawningEventArgs class.

    Declaration
    public SpawningEventArgs(Player player, Vector3 position, float rotation, PlayerRoleBase oldRole)
    Parameters
    Type Name Description
    Player player
    UnityEngine.Vector3 position
    System.Single rotation
    PlayerRoles.PlayerRoleBase oldRole

    the spawned player's old PlayerRoles.PlayerRoleBase.

    Properties

    | Improve this Doc View Source

    HorizontalRotation

    Gets or sets the Player's spawning rotation.

    Declaration
    public float HorizontalRotation { get; set; }
    Property Value
    Type Description
    System.Single
    Remarks

    Rotation will apply only for FpcRole.

    | Improve this Doc View Source

    OldRole

    Gets the player's old PlayerRoles.PlayerRoleBase.

    Declaration
    public Role OldRole { get; }
    Property Value
    Type Description
    Role
    | Improve this Doc View Source

    Player

    Gets the spawning Player.

    Declaration
    public Player Player { get; }
    Property Value
    Type Description
    Player
    | Improve this Doc View Source

    Position

    Gets or sets the Player's spawning position.

    Declaration
    public Vector3 Position { get; set; }
    Property Value
    Type Description
    UnityEngine.Vector3
    Remarks

    Position will apply only for FpcRole.

    Implements

    IPlayerEvent
    IExiledEvent

    Extension Methods

    ReflectionExtensions.CopyProperties(Object, Object)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX