Table of Contents

Class UsingRadioBatteryEventArgs

Namespace
Exiled.Events.EventArgs.Player
Assembly
Exiled.Events.dll

Contains all information before radio battery charge is changed.

public class UsingRadioBatteryEventArgs : IDeniableEvent, IItemEvent, IPlayerEvent, IExiledEvent
Inheritance
UsingRadioBatteryEventArgs
Implements
Inherited Members
Extension Methods

Constructors

UsingRadioBatteryEventArgs(RadioItem, Player, float, bool)

Initializes a new instance of the UsingRadioBatteryEventArgs class.

public UsingRadioBatteryEventArgs(RadioItem radio, Player player, float drain, bool isAllowed = true)

Parameters

radio RadioItem
player Player
drain float
isAllowed bool

Properties

Drain

Gets or sets the radio battery drain per second.

public float Drain { get; set; }

Property Value

float

IsAllowed

Gets or sets a value indicating whether the radio battery charge can be changed.

public bool IsAllowed { get; set; }

Property Value

bool

Item

Gets the Item triggering the event.

public Item Item { get; }

Property Value

Item

Player

Gets the player who's using the radio.

public Player Player { get; }

Property Value

Player

Radio

Gets the Radio which is being used.

public Radio Radio { get; }

Property Value

Radio