Class NmSoundEvent
Namespace: ValveResourceFormat.ResourceTypes.ModelAnimation2
Assembly: ValveResourceFormat.dll
A sound event fired during clip playback (CNmSoundEvent).
public sealed class NmSoundEvent : NmClipEvent, IAnimationEventInheritance
object ← NmClipEvent ← NmSoundEvent
Implements
Inherited Members
NmClipEvent.ClassName, NmClipEvent.StartCycle, NmClipEvent.StartTime, NmClipEvent.Duration, NmClipEvent.SyncId, NmClipEvent.Data, NmClipEvent.Build(KVObject, float), NmClipEvent.ToString()
Properties
AttachmentName
Gets the attachment the sound follows when set.
public string AttachmentName { get; }Property Value
ContinuePlayingSoundAtDurationEnd
Gets whether the sound keeps playing to its natural end when the event window closes (otherwise it is stopped).
public bool ContinuePlayingSoundAtDurationEnd { get; }Property Value
DurationInterruptionThreshold
Gets the fraction of that must have elapsed for the sound to survive an interruption of the animation; interrupted earlier, the sound is stopped.
public float DurationInterruptionThreshold { get; }Property Value
Name
Gets the name of the sound event to play.
public string Name { get; }Property Value
Position
Gets where the sound is positioned: "EntityEyePos", "EntityPos", or "None".
public string Position { get; }Property Value
Relevance
Gets the network relevance: "ClientOnly" or "ClientAndServer".
public string Relevance { get; }
