Class SpawningEventArgs
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
Properties
HorizontalRotation
Gets or sets the Player's spawning rotation.
public float HorizontalRotation { get; set; }
Property Value
Remarks
Rotation will apply only for FpcRole.
NewRole
Gets the player's new role.
public Role NewRole { get; }
Property Value
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
Player
Gets the spawning Player.
public Player Player { get; }
Property Value
Position
Gets or sets the Player's spawning position.
public Vector3 Position { get; set; }
Property Value
- Vector3
Remarks
Position will apply only for FpcRole.