Search Results for

    Show / Hide Table of Contents

    Class Respawn

    A set of tools to handle team respawns more easily.

    Inheritance
    System.Object
    Respawn
    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
    Assembly: Exiled.API.dll
    Syntax
    public static class Respawn

    Properties

    | Improve this Doc View Source

    ChaosTickets

    Gets or sets the amount of spawn tickets belonging to the Chaos Insurgency.

    Declaration
    public static float ChaosTickets { get; set; }
    Property Value
    Type Description
    System.Single
    See Also
    NtfTickets
    | Improve this Doc View Source

    ChaosVan

    Gets the Chaos Van's UnityEngine.GameObject.

    Declaration
    public static GameObject ChaosVan { get; }
    Property Value
    Type Description
    UnityEngine.GameObject
    | Improve this Doc View Source

    IsSpawning

    Gets a value indicating whether or not a team is currently being spawned or the animations are playing for a team.

    Declaration
    public static bool IsSpawning { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    NextKnownTeam

    Gets or sets the next known Respawning.SpawnableTeamType that will spawn.

    Declaration
    public static SpawnableTeamType NextKnownTeam { get; set; }
    Property Value
    Type Description
    Respawning.SpawnableTeamType
    | Improve this Doc View Source

    NextTeamTime

    Gets a System.DateTime indicating the moment in UTC time the next respawn wave will occur.

    Declaration
    public static DateTime NextTeamTime { get; }
    Property Value
    Type Description
    System.DateTime
    | Improve this Doc View Source

    NtfHelicopter

    Gets the NTF Helicopter's UnityEngine.GameObject.

    Declaration
    public static GameObject NtfHelicopter { get; }
    Property Value
    Type Description
    UnityEngine.GameObject
    | Improve this Doc View Source

    NtfTickets

    Gets or sets the amount of spawn tickets belonging to the NTF.

    Declaration
    public static float NtfTickets { get; set; }
    Property Value
    Type Description
    System.Single
    See Also
    ChaosTickets
    | Improve this Doc View Source

    ProtectedCanShoot

    Gets or sets a value indicating whether or not spawn protected players can shoot.

    Declaration
    public static bool ProtectedCanShoot { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    ProtectedTeams

    Gets a System.Collections.Generic.List<T> of PlayerRoles.Team that have spawn protection.

    Declaration
    public static List<Team> ProtectedTeams { get; }
    Property Value
    Type Description
    System.Collections.Generic.List<PlayerRoles.Team>
    | Improve this Doc View Source

    ProtectionEnabled

    Gets or sets a value indicating whether or not spawn protection is enabled.

    Declaration
    public static bool ProtectionEnabled { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    ProtectionTime

    Gets or sets the spawn protection time, in seconds.

    Declaration
    public static float ProtectionTime { get; set; }
    Property Value
    Type Description
    System.Single
    | Improve this Doc View Source

    TimeUntilNextPhase

    Gets or sets the amount of seconds before the next respawn phase will occur.

    Declaration
    public static float TimeUntilNextPhase { get; set; }
    Property Value
    Type Description
    System.Single
    | Improve this Doc View Source

    TimeUntilSpawnWave

    Gets a System.TimeSpan indicating the amount of time before the next respawn wave will occur.

    Declaration
    public static TimeSpan TimeUntilSpawnWave { get; }
    Property Value
    Type Description
    System.TimeSpan

    Methods

    | Improve this Doc View Source

    ForceWave(SpawnableTeamType, Boolean)

    Forces a spawn of the given Respawning.SpawnableTeamType.

    Declaration
    public static void ForceWave(SpawnableTeamType team, bool playEffects = false)
    Parameters
    Type Name Description
    Respawning.SpawnableTeamType team

    The Respawning.SpawnableTeamType to spawn.

    System.Boolean playEffects

    Whether or not effects will be played with the spawn.

    | Improve this Doc View Source

    GrantTickets(SpawnableTeamType, Single)

    Grants tickets to a Respawning.SpawnableTeamType.

    Declaration
    public static void GrantTickets(SpawnableTeamType team, float amount)
    Parameters
    Type Name Description
    Respawning.SpawnableTeamType team

    The Respawning.SpawnableTeamType to grant tickets to.

    System.Single amount

    The amount of tickets to grant.

    | Improve this Doc View Source

    ModifyTickets(SpawnableTeamType, Single)

    Modify tickets from a Respawning.SpawnableTeamType.

    Declaration
    public static void ModifyTickets(SpawnableTeamType team, float amount)
    Parameters
    Type Name Description
    Respawning.SpawnableTeamType team

    The Respawning.SpawnableTeamType to modify tickets from.

    System.Single amount

    The amount of tickets to modify.

    | Improve this Doc View Source

    PlayEffect(RespawnEffectType)

    Play an effect when a certain class spawns.

    Declaration
    public static void PlayEffect(RespawnEffectType effect)
    Parameters
    Type Name Description
    RespawnEffectType effect

    The effect to be played.

    | Improve this Doc View Source

    PlayEffect(Byte)

    Play an effect when a certain class spawns.

    Declaration
    public static void PlayEffect(byte effect)
    Parameters
    Type Name Description
    System.Byte effect

    The effect to be played.

    | Improve this Doc View Source

    PlayEffects(RespawnEffectType[])

    Play effects when a certain class spawns.

    Declaration
    public static void PlayEffects(RespawnEffectType[] effects)
    Parameters
    Type Name Description
    RespawnEffectType[] effects

    The effects to be played.

    | Improve this Doc View Source

    PlayEffects(Byte[])

    Play effects when a certain class spawns.

    Declaration
    public static void PlayEffects(byte[] effects)
    Parameters
    Type Name Description
    System.Byte[] effects

    The effects to be played.

    | Improve this Doc View Source

    RemoveTickets(SpawnableTeamType, Single)

    Removes tickets from a Respawning.SpawnableTeamType.

    Declaration
    public static void RemoveTickets(SpawnableTeamType team, float amount)
    Parameters
    Type Name Description
    Respawning.SpawnableTeamType team

    The Respawning.SpawnableTeamType to remove tickets from.

    System.Single amount

    The amount of tickets to remove.

    | Improve this Doc View Source

    SummonChaosInsurgencyVan(Boolean)

    Summons the ChaosInsurgency van.

    Declaration
    public static void SummonChaosInsurgencyVan(bool playMusic = true)
    Parameters
    Type Name Description
    System.Boolean playMusic

    Whether or not to play the Chaos Insurgency spawn music.

    | Improve this Doc View Source

    SummonNtfChopper()

    Summons the NTF chopper.

    Declaration
    public static void SummonNtfChopper()
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX