Search Results for

    Show / Hide Table of Contents

    Class Warhead

    A set of tools to easily work with the alpha warhead.

    Inheritance
    System.Object
    Warhead
    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 Warhead

    Properties

    | Improve this Doc View Source

    AutoDetonate

    Gets or sets a value indicating whether or not automatic detonation is enabled.

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

    BlastDoors

    Gets all of the warhead blast doors.

    Declaration
    public static IReadOnlyCollection<BlastDoor> BlastDoors { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyCollection<BlastDoor>
    | Improve this Doc View Source

    CanBeStarted

    Gets a value indicating whether or not the warhead can be started.

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

    Controller

    Gets the cached AlphaWarheadController component.

    Declaration
    public static AlphaWarheadController Controller { get; }
    Property Value
    Type Description
    AlphaWarheadController
    | Improve this Doc View Source

    DetonationTimer

    Gets or sets the warhead detonation timer.

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

    IsDetonated

    Gets a value indicating whether or not the warhead has already been detonated.

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

    IsInProgress

    Gets a value indicating whether or not the warhead detonation is in progress.

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

    IsKeycardActivated

    Gets or sets a value indicating whether or not the warhead's outside panel has been opened.

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

    IsLocked

    Gets or sets a value indicating whether or not the warhead can be disabled.

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

    Kills

    Gets or sets the amount of kills caused by the warhead (shown on the summary screen).

    Declaration
    public static int Kills { get; set; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Lever

    Gets the UnityEngine.GameObject of the warhead lever.

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

    LeverStatus

    Gets or sets a value indicating whether or not the warhead lever is enabled.

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

    OpenDoors

    Gets or sets a value indicating whether or not doors will be opened when the warhead activates.

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

    OutsitePanel

    Gets the cached AlphaWarheadOutsitePanel component.

    Declaration
    public static AlphaWarheadOutsitePanel OutsitePanel { get; }
    Property Value
    Type Description
    AlphaWarheadOutsitePanel
    | Improve this Doc View Source

    RealDetonationTimer

    Gets the warhead real detonation timer.

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

    SitePanel

    Gets the cached AlphaWarheadNukesitePanel component.

    Declaration
    public static AlphaWarheadNukesitePanel SitePanel { get; }
    Property Value
    Type Description
    AlphaWarheadNukesitePanel
    | Improve this Doc View Source

    Status

    Gets or sets the warhead status.

    Declaration
    public static WarheadStatus Status { get; set; }
    Property Value
    Type Description
    WarheadStatus

    Methods

    | Improve this Doc View Source

    CanBeDetonated(Vector3, Boolean)

    Gets whether or not the provided position will be detonated by the alpha warhead.

    Declaration
    public static bool CanBeDetonated(Vector3 pos, bool includeOnlyLifts = false)
    Parameters
    Type Name Description
    UnityEngine.Vector3 pos

    The position to check.

    System.Boolean includeOnlyLifts

    If true, only lifts will be checked.

    Returns
    Type Description
    System.Boolean

    Whether or not the given position is prone to being detonated.

    | Improve this Doc View Source

    CloseBlastDoors()

    Closes the surface blast doors.

    Declaration
    public static void CloseBlastDoors()
    | Improve this Doc View Source

    Detonate()

    Detonates the warhead.

    Declaration
    public static void Detonate()
    | Improve this Doc View Source

    Shake()

    Shake all players, like if the warhead has been detonated.

    Declaration
    public static void Shake()
    | Improve this Doc View Source

    Start()

    Starts the warhead countdown.

    Declaration
    public static void Start()
    | Improve this Doc View Source

    Stop()

    Stops the warhead.

    Declaration
    public static void Stop()
    | Improve this Doc View Source

    TriggerDoors(Boolean)

    Opens or closes all doors on the map, based on the provided open.

    Declaration
    public static void TriggerDoors(bool open)
    Parameters
    Type Name Description
    System.Boolean open

    Whether to open or close all doors on the map.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX