O'Reilly logo

Mastering Game Development with Unreal Engine 4 - Second Edition by Matt Edmonds

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required