Class PlaySoundBehavior
Inheritance
System.Object
PlaySoundBehavior
Implements
Namespace: Content.Server.Destructible.Thresholds.Behaviors
Assembly: Content.Server.dll
Syntax
public sealed class PlaySoundBehavior : object, IThresholdBehavior
Properties
| Improve this Doc View SourceSound
Sound played upon destruction.
Declaration
public SoundSpecifier Sound { get; set; }
Property Value
Type | Description |
---|---|
Robust.Shared.Audio.SoundSpecifier |
Methods
| Improve this Doc View SourceExecute(EntityUid, DestructibleSystem, Nullable<EntityUid>)
Declaration
public void Execute(EntityUid owner, DestructibleSystem system, EntityUid? cause = null)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | owner | |
DestructibleSystem | system | |
System.Nullable<EntityUid> | cause |