Skip to content

API reference Obsidian.API

ISoundEffect interface

public interface ISoundEffect

In Obsidian.API.

Properties

EntityId

int? EntityId { get; init; }

The entity id that the sound originated from.

Remarks

Null if ISoundEffect.SoundPosition has a value.

FixedRange

float? FixedRange { get; init; }

The fixed range of the sound.

Pitch

float Pitch { get; init; }

Remarks

Must be a value between 0.5 and 2.0

Seed

long Seed { get; init; }

Seed used to pick sound variant.

SoundCategory

SoundCategory SoundCategory { get; init; }

The category that this sound will be played from.

string SoundId { get; init; }

SoundPosition

SoundPosition? SoundPosition { get; init; }

The position of where the sound originated from.

Remarks

Null if ISoundEffect.EntityId has a value.

Volume

float Volume { get; init; }

Remarks

Must be a value between 0.0 and 1.0

On this page