Table of Contents

Class SpawningEventArgs

Namespace
Exiled.Events.EventArgs.Player
Assembly
Exiled.Events.dll

Contains all information before spawning a player.

public class SpawningEventArgs : IPlayerEvent, IExiledEvent
Inheritance
SpawningEventArgs
Implements
Inherited Members
Extension Methods

Constructors

SpawningEventArgs(Player, Vector3, float, PlayerRoleBase)

Initializes a new instance of the SpawningEventArgs class.

public SpawningEventArgs(Player player, Vector3 position, float rotation, PlayerRoleBase newRole)

Parameters

player Player
position Vector3
rotation float
newRole PlayerRoleBase

the spawned player's new role.

Properties

HorizontalRotation

Gets or sets the Player's spawning rotation.

public float HorizontalRotation { get; set; }

Property Value

float

Remarks

Rotation will apply only for FpcRole.

NewRole

Gets the player's new role.

public Role NewRole { get; }

Property Value

Role

OldRole

Gets the player's old role.

[Obsolete("Removed because the method is no longer provide OldRole since version 14.0. Use Player.Role instead")]
public Role OldRole { get; }

Property Value

Role

Player

Gets the spawning Player.

public Player Player { get; }

Property Value

Player

Position

Gets or sets the Player's spawning position.

public Vector3 Position { get; set; }

Property Value

Vector3

Remarks

Position will apply only for FpcRole.