Skip to content

Stratkit Audio on Selected

Provides a scriptable property to indicate a sound to play on selection and systems to play them.

Adding such scriptable properties to the balancing data should trigger a specific sound upon selection. The systems support playing audio on when any of the following is selected: - Army - Moddable Upgrade (building) - Province

To play a sound, the related balancing element needs to have the component PlaySoundOnSelectedComponent. - On Units, it is usually found on balancing as Unit.clickSound in the content items. - On Buildings, it is is usually Upgrade.clickSound in the content items. - On Province, it may be clickSound in the province map balancing file.

Notice one can skip the entries for specific elements or even skip the entire column to simply not use the feature. For the playback of sounds on the army selection, a config of type PlaySoundOnArmySelectedConfig is required.