(Multilingual) Localizable Voice & Subtitles System – L.V.S.S.

Hi!

Well, you could, for example, add an event in the SubtitlesManager called RoundCountdown for example, and have that automatically do a countdown like “3… 2… 1… Go!” and after that call an EventDispatcher that triggers custom events in any other blueprint. I’ll make an example of this in a bit.

You could also have it the other way around, for example, if you already have a GameOver event dispatcher called in your char when health is below 0 that updates the HUD, you can modify the SubtitlesManager so that when that fires in your character, it automatically does a voice or dialogue, even chosen at random between a predefined pool of voices.

I hope I’m understanding what you ask correctly :slight_smile:

Edit: Here is how I’ve done it:

  1. Create a new custom event in the SubsManager and wire it to trigger the dialogue you want for the round start, then create an Event Dispatcher called RoundStart and call it:


(Error because I compiled while the Array of subtitles still wasn’t connected :P)

  1. In your Spawner BP, or whichever BP you’re using to handle spawning actors, get SubsManager, bind RoundStart to a new or existing Custom Event and set up the spawning:

  1. Then in, for example, your character if you want the player to press a button to start, or in your menu/HUD widget if you want them to click a menu button, you simply Get SubsManager and call RoundCountdown:

07b0827f63558f8f69932197baa141f486a3f6de.jpeg
(Note: I use interfaces because I prefer it for organization purposes, but it’s completely optional)

And that’s it! You could have an Integer variable that keeps count of which round the player is in, etc, but this is the basic framework.

If you wanted to do what I said above (trigger certain random dialogue when you die or when you kill an enemy for example) you would do it the other way around. Create Event Dispatcher in your char BP (if you die) or your enemy BP (if they die), bind that dispatcher in the SubsManager to a new Custom Event that calls RandomMonologue with a pool of entries.

This is something I could make standard with the system later on. I’m finalizing the banners for the Marketplace now and will submit as soon as I’m done with that.