How do I add multiple Overlapping Actors of Class to Dialogue mechanic?

I’ve been trying to learn Unreal for the past 2 months but I’m not sure how to best go about this.

I have a basic Dialogue mechanic that allows me to use some predetermined text with the widget, long as I am overlapping in the sphere trigger I set in the actor’s bp. The problem is, I don’t know how to add more then one Overlapping Actor of Class to the mechanic.

Hi there and welcome,

Can you elaborate the question further in detail since it’s a design question so we can help better, try to explain in detail what you are having trouble with etc.

However if you are looking something like GetOverlappingActors (multipleClasses) you can just select actor as filter.

In my First Person Character, I grab the overlapping actor because I set up a collision sphere called the Trigger Zone in my NPC’s then the loop checks if the actor is implementing my interface BP_Dialogue and if it does that triggers the Talk Function that belongs to my interface.

That triggers my NPC’s Event Talk from the BPI. Talk index is set at -1 and then adds 1 so it starts at zero and for continuing to the next line after E is pressed again. I have a Dialogue string array that contains all the lines for their lines. The UI is the Widget I made earlier.


Dialogue into Length, Length and Talk Index into < into branch, and out of false to Remove from Parent, to remove the widget, when there is no more lines of speech so the widget won’t remain.

Out of true in the branch, Get (a validated UI Variable) is checking if the widget is on screen, if true it shoots to Set Text (Text) to change the dialogue from the last line. If false, it creates the widget for the player, sets it as the new UI, and adds it to the viewport then hits Set Text (Text).

UI into Target TalkText is the Widget’s Textbox (Set as a variable in the widget) that becomes the target for what text is changed as it’s links to Set Text (Text)’s target.

Talk Index and Dialogue into Get into To Text (String) into In Text, Talk Index correlates with the line Dialogue that currently being presented on the widget and plugs that in.

I hope that makes more sense at least.

That is pretty clear thanks for additional explanations.

E->CanTalk(True)->Talk->ShowWidget->SetTalkData

I was asking about I don’t know how to add more then one Overlapping Actor of Class to the mechanic. what does this mean? What is the use case you are trying to do ? or in other words what you are trying to do and can’t do?