Triggering sounds from animation

By far the most common usage case in games is audio triggered as animations are played. We'll set up several events like this for our countess NPC and, in the next section, some footsetps based on materials for our player (even though our player character model has no feet!). To get started, let's open our ABP_Countess animation blueprint and look again at her attack state:

We'll now work on Primary_Attack_A_Normal with an event to make her attack not so eerily silent. Double-click the attack anim. node and, like we did earlier for the try-to-hit event, we'll add another event to her animation a bit earlier: ...

Get Mastering Game Development with Unreal Engine 4 - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.