Skip to content

MusicStinger ​

Inherits: Resource

A stinger of a Dynamic Music: a short sound that plays over the music to mark a moment (the boss appears, a quest is done), and can lower the music while it plays. An event or a combat action plays it by name. See docs: Audio > Dynamic Music.

Properties ​

Stringname""
Stringpath""
floatvolume_db0.0
floatduck_db6.0

Methods ​

Stringdescribe()
PackedStringArrayvalidate()

Property descriptions ​

String name = "" ​

The name of the stinger ("Boss appears"); the actions refer to it

String path = "" ​

The sound (an audio file of the library)

float volume_db = 0.0 ​

How loud it is (dB)

float duck_db = 6.0 ​

How much the music is lowered while the stinger plays (dB; 0 = not lowered)

Method descriptions ​

String describe() ​

The title of the stinger in the editor

PackedStringArray validate() ​

The warnings of this stinger