Class PlayingSoundEventArgs
Contains all information before SCP-939 plays a sound effect.
public class PlayingSoundEventArgs : IScp939Event, IPlayerEvent, IDeniableEvent, IExiledEvent
- Inheritance
-
PlayingSoundEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
PlayingSoundEventArgs(Player, EnvMimicrySequence, bool, float, bool)
Initializes a new instance of the PlayingSoundEventArgs class.
public PlayingSoundEventArgs(Player player, EnvMimicrySequence sound, bool isReady, float cooldown, bool isAllowed = true)
Parameters
playerPlayersoundEnvMimicrySequenceThe sound that is being played.
isReadyboolWhether SCP-939's environmental mimicry cooldown is ready.
cooldownfloatThe cooldown of the environmental mimicry.
isAllowedbool
Properties
Cooldown
Gets or sets a value indicating SCP-939's environmental mimicry cooldown.
public float Cooldown { get; set; }
Property Value
IsAllowed
Gets or sets a value indicating whether SCP-939 can play the sound.
public bool IsAllowed { get; set; }
Property Value
Remarks
This will default to false if IsReady is false. In this case, setting it to true will override the cooldown.
IsReady
Gets a value indicating whether SCP-939's environmental mimicry cooldown is ready.
public bool IsReady { get; }
Property Value
Player
Gets the player who's controlling SCP-939.
public Player Player { get; }
Property Value
Scp939
Gets the Scp939Role triggering the event.
public Scp939Role Scp939 { get; }
Property Value
Sound
Gets the sound being played.
public EnvMimicrySequence Sound { get; }
Property Value
- EnvMimicrySequence