Class SpawningEventArgs
Contains all information before spawning a player.
Inheritance
System.Object
SpawningEventArgs
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 SourceSpawningEventArgs(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 SourceHorizontalRotation
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.
OldRole
Gets the player's old PlayerRoles.PlayerRoleBase.
Declaration
public Role OldRole { get; }
Property Value
Type | Description |
---|---|
Role |
Player
Gets the spawning Player.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |
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.