Table of Contents

Class ChangingCameraEventArgs

Namespace
Exiled.Events.EventArgs.Scp079
Assembly
Exiled.Events.dll

Contains all information before a SCP-079 changes the current camera.

public class ChangingCameraEventArgs : IScp079Event, IPlayerEvent, ICameraEvent, IDeniableEvent, IExiledEvent
Inheritance
ChangingCameraEventArgs
Implements
Inherited Members
Extension Methods

Constructors

ChangingCameraEventArgs(Player, Scp079Camera, float)

Initializes a new instance of the ChangingCameraEventArgs class.

public ChangingCameraEventArgs(Player player, Scp079Camera camera, float auxiliaryPowerCost)

Parameters

player Player
camera Scp079Camera
auxiliaryPowerCost float

Properties

AuxiliaryPowerCost

Gets or sets the amount of auxiliary power that will be required to switch cameras.

public float AuxiliaryPowerCost { get; set; }

Property Value

float

Camera

Gets or sets the camera SCP-079 will be moved to.

public Camera Camera { get; set; }

Property Value

Camera

IsAllowed

Gets or sets a value indicating whether SCP-079 can switch cameras.

Defaults to a value describing whether SCP-079 has enough auxiliary power to switch.


Can be set to true to allow a switch regardless of SCP-079's auxiliary power amount.
public bool IsAllowed { get; set; }

Property Value

bool

Player

Gets the player who is SCP-079.

public Player Player { get; }

Property Value

Player

Scp079

Gets the Scp079Role triggering the event.

public Scp079Role Scp079 { get; }

Property Value

Scp079Role