Close Dialogue System when my Character walks out of the Sphere Collision Range

Hello everyone,

I’d like to share an Event Graph from my NPC Blueprint with you. You can view it below:

In this Blueprint, I’ve set up a Sphere Collision called “Trigger Zone.” When the “F” key is pressed within this zone, a conversation with the NPC begins. Now, I’m facing the challenge of ensuring that the chatbox remains visible and functional only when the player’s character is within the “Trigger Zone.” If the character exits the trigger zone, the chatbox should close. Subsequently, when the player returns to interact with the NPC, the conversation should restart from the beginning.

Could someone offer guidance on how to address this issue?

Best regards,

You presumably have a begin overlap node somewhere.

You can add an ‘end overlap’ node at plug it in here

image

Hey ClockworkOcean, thank you very much for your reply!

I do have an “get overlapping actors” within my BP for my third person character, so the character I am on.

But I dont know what you mean by “end overlap” node, could you explain it to me please?

So the first Screenshort I shared in the initial post is the NPC I am talking to and this Screenshot here is the NPC I am steering in the game.

Kind Regards

That collision. When they leave that area, you turn the remove widget code.

What kind of collision is that, is it in the level, or in a blueprint, or…?