Class SpawnLocation
Represents a spawn location for a Role.
Inheritance
System.Object
SpawnLocation
Implements
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.API.Features.Spawn
Assembly: Exiled.API.dll
Syntax
public class SpawnLocation : IPosition
Constructors
| Improve this Doc View SourceSpawnLocation(RoleTypeId, Vector3, Single)
Initializes a new instance of the SpawnLocation class.
Declaration
public SpawnLocation(RoleTypeId roleType, Vector3 position, float horizontalRotation)
Parameters
Type | Name | Description |
---|---|---|
PlayerRoles.RoleTypeId | roleType | The PlayerRoles.RoleTypeId this spawn is for. |
UnityEngine.Vector3 | position | The UnityEngine.Vector3 position of the spawn. |
System.Single | horizontalRotation | The horizontal rotation of the spawn. |
Properties
| Improve this Doc View SourceHorizontalRotation
Gets the horizontal rotation of the spawn.
Declaration
public float HorizontalRotation { get; }
Property Value
Type | Description |
---|---|
System.Single |
Position
Gets the position of the spawn.
Declaration
public Vector3 Position { get; }
Property Value
Type | Description |
---|---|
UnityEngine.Vector3 |
RoleType
Gets the PlayerRoles.RoleTypeId the spawn is for.
Declaration
public RoleTypeId RoleType { get; }
Property Value
Type | Description |
---|---|
PlayerRoles.RoleTypeId |