Class ChangingCameraEventArgs
Contains all information before a SCP-079 changes the current camera.
Inheritance
System.Object
ChangingCameraEventArgs
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.Events.EventArgs.Scp079
Assembly: Exiled.Events.dll
Syntax
public class ChangingCameraEventArgs : IScp079Event, IPlayerEvent, ICameraEvent, IDeniableEvent, IExiledEvent
Constructors
| Improve this Doc View SourceChangingCameraEventArgs(Player, Scp079Camera, Single)
Initializes a new instance of the ChangingCameraEventArgs class.
Declaration
public ChangingCameraEventArgs(Player player, Scp079Camera camera, float auxiliaryPowerCost)
Parameters
Type | Name | Description |
---|---|---|
Player | player | |
PlayerRoles.PlayableScps.Scp079.Cameras.Scp079Camera | camera | |
System.Single | auxiliaryPowerCost |
Properties
| Improve this Doc View SourceAuxiliaryPowerCost
Gets or sets the amount of auxiliary power that will be required to switch cameras.
Declaration
public float AuxiliaryPowerCost { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Camera
Gets or sets the camera SCP-079 will be moved to.
Declaration
public Camera Camera { get; set; }
Property Value
Type | Description |
---|---|
Camera |
IsAllowed
Gets or sets a value indicating whether or not SCP-079 can switch cameras.
Defaults to a value describing whether or not 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.
Declaration
public bool IsAllowed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Player
Gets the player who is SCP-079.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |
Scp079
Declaration
public Scp079Role Scp079 { get; }
Property Value
Type | Description |
---|---|
Scp079Role |