Table of Contents

Class SpawnLocation

Namespace
Exiled.API.Features.Spawn
Assembly
Exiled.API.dll

Represents a spawn location for a Role.

public class SpawnLocation : IPosition
Inheritance
SpawnLocation
Implements
Inherited Members
Extension Methods

Constructors

SpawnLocation(RoleTypeId, Vector3, float)

Initializes a new instance of the SpawnLocation class.

public SpawnLocation(RoleTypeId roleType, Vector3 position, float horizontalRotation)

Parameters

roleType RoleTypeId

The PlayerRoles.RoleTypeId this spawn is for.

position Vector3

The UnityEngine.Vector3 position of the spawn.

horizontalRotation float

The horizontal rotation of the spawn.

Properties

HorizontalRotation

Gets the horizontal rotation of the spawn.

public float HorizontalRotation { get; }

Property Value

float

Position

Gets the position of the spawn.

public Vector3 Position { get; }

Property Value

Vector3

RoleType

Gets the PlayerRoles.RoleTypeId the spawn is for.

public RoleTypeId RoleType { get; }

Property Value

RoleTypeId