Download

How to make the character speak by pressing a button

Hi There

I am making my Abe style platform game and I was wondering what would be the best way to make a Gamespeak type feature where if you press the button the keyboard, the character would say something.

So if I press numpad 1 , the character would say “Hello1” and different ways on saying it. Then numberpad 2 would be “follow me” etc. Also, button 0 would be an animation action, chanting.

Simply create a key press event you desire in your character class/blueprint, and use Spawn Audio on Location with current character’s position as the location input.
For audio that triggers animations, you can ask your character to play a specified montage. Depending on your animation, you can order the execution starting by Play Montage first then Spawn Audio, or Spawn Audio first then Play Montage.