Table of Contents

Class Warhead

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

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

public static class Warhead
Inheritance
Warhead
Inherited Members

Properties

AutoDetonate

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

public static bool AutoDetonate { get; set; }

Property Value

bool

BlastDoors

Gets all of the warhead blast doors.

public static IReadOnlyCollection<BlastDoor> BlastDoors { get; }

Property Value

IReadOnlyCollection<BlastDoor>

CanBeStarted

Gets a value indicating whether the warhead can be started.

public static bool CanBeStarted { get; }

Property Value

bool

Controller

Gets the cached AlphaWarheadController component.

public static AlphaWarheadController Controller { get; }

Property Value

AlphaWarheadController

DeadmanSwitchEnabled

Gets or sets a value indicating whether DeadmanSwitch detonation is enabled.

public static bool DeadmanSwitchEnabled { get; set; }

Property Value

bool

DetonationTimer

Gets or sets the warhead detonation timer.

public static float DetonationTimer { get; set; }

Property Value

float

IsDetonated

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

public static bool IsDetonated { get; }

Property Value

bool

IsInProgress

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

public static bool IsInProgress { get; }

Property Value

bool

IsKeycardActivated

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

public static bool IsKeycardActivated { get; set; }

Property Value

bool

IsLocked

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

public static bool IsLocked { get; set; }

Property Value

bool

Kills

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

public static int Kills { get; set; }

Property Value

int

Lever

Gets the UnityEngine.GameObject of the warhead lever.

public static GameObject Lever { get; }

Property Value

GameObject

LeverStatus

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

public static bool LeverStatus { get; set; }

Property Value

bool

OpenDoors

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

public static bool OpenDoors { get; set; }

Property Value

bool

OutsitePanel

Gets the cached AlphaWarheadOutsitePanel component.

public static AlphaWarheadOutsitePanel OutsitePanel { get; }

Property Value

AlphaWarheadOutsitePanel

RealDetonationTimer

Gets the warhead real detonation timer.

public static float RealDetonationTimer { get; }

Property Value

float

SitePanel

Gets the cached AlphaWarheadNukesitePanel component.

public static AlphaWarheadNukesitePanel SitePanel { get; }

Property Value

AlphaWarheadNukesitePanel

Status

Gets or sets the warhead status.

public static WarheadStatus Status { get; set; }

Property Value

WarheadStatus

Methods

CanBeDetonated(Vector3, bool)

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

public static bool CanBeDetonated(Vector3 pos, bool includeOnlyLifts = false)

Parameters

pos Vector3

The position to check.

includeOnlyLifts bool

If true, only lifts will be checked.

Returns

bool

Whether the given position is prone to being detonated.

CloseBlastDoors()

Closes the surface blast doors.

public static void CloseBlastDoors()

Detonate()

Detonates the warhead.

public static void Detonate()

Shake()

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

public static void Shake()

Start()

Starts the warhead countdown.

public static void Start()

Stop()

Stops the warhead.

public static void Stop()

TriggerDoors(bool)

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

public static void TriggerDoors(bool open)

Parameters

open bool

Whether to open or close all doors on the map.