From 2890be7f301149249015cf6b01ced9c5be8c2fa3 Mon Sep 17 00:00:00 2001 From: SirLich Date: Sat, 31 Oct 2020 22:22:27 +0100 Subject: [PATCH] Add sounds example for animation --- concepts/sounds.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/concepts/sounds.md b/concepts/sounds.md index abc76b4d..ac749dff 100644 --- a/concepts/sounds.md +++ b/concepts/sounds.md @@ -219,3 +219,24 @@ There are also many sound events, which *most likely* trigger automatically, but } } ``` +# Adding sounds to Animations + +Sounds played in animations function based off of `short-name` definitions in the RP entity file. + +This example shows playing a wing-flap sound, synced with an animation. + +`RP/entities/dragon.entity.rp.json` +```jsonc +"sound_effects": { + "wing_flap": "wiki.dragon.wing_flap" //where wiki.dragon.roar is a sound definited in sound_definitions +} +``` + +`RP/animations/dragon.animation.json` +```jsonc +"sound_effects": { + "3.16": { + "effect": "wing_flap" + } +} +```