Class SpawnExtensions
- Namespace
- Exiled.API.Extensions
- Assembly
- Exiled.API.dll
A set of extensions for SpawnLocationType.
public static class SpawnExtensions
- Inheritance
-
SpawnExtensions
- Inherited Members
Fields
ReversedLocations
The names of spawn locations who's positions are on the opposite side of their door, and must be corrected.
public static readonly SpawnLocationType[] ReversedLocations
Field Value
Methods
GetDoor(SpawnLocationType)
Tries to get the UnityEngine.Transform of the door used for a specific SpawnLocationType.
public static Transform GetDoor(this SpawnLocationType location)
Parameters
location
SpawnLocationTypeThe SpawnLocationType to check.
Returns
- Transform
The UnityEngine.Transform used for that spawn location. Can be null.
GetDoorName(SpawnLocationType)
The names of the doors attached to each spawn location.
public static string GetDoorName(this SpawnLocationType spawnLocation)
Parameters
spawnLocation
SpawnLocationTypeThe SpawnLocationType.
Returns
- string
Returns the door name.
GetPosition(SpawnLocationType)
Tries to get the UnityEngine.Vector3 used for a specific SpawnLocationType.
public static Vector3 GetPosition(this SpawnLocationType location)
Parameters
location
SpawnLocationTypeThe SpawnLocationType to check.
Returns
- Vector3
The UnityEngine.Vector3 used for that spawn location. Can be UnityEngine.Vector3.zero.