Skip to content

Commit

Permalink
Add sounds example for animation
Browse files Browse the repository at this point in the history
  • Loading branch information
SirLich committed Oct 31, 2020
1 parent cf34561 commit 2890be7
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions concepts/sounds.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
```

0 comments on commit 2890be7

Please sign in to comment.