HUD Message Device doesn't Hide HUD when called through Verse, after calling Show on specific Agents

Please select what you are reporting on:

Verse

What Type of Bug are you experiencing?

Devices

Summary

The following code to display a HUD and then have it Hide only when necessary doesn’t work:

ShowHUDForAgent(Agent:agent):void=
HUDMessageDevice.Show(Agent)
Sleep(5.0)
HUDMessageDevice.Hide()

Other than the fact that there’s no option to Hide() a HUD device only for a specific Agent, this code doesn’t hide it at all, for anyone in the match.
It will correctly display, but it won’t Hide().

Steps to Reproduce

Add a HUD Message Device and reference it via Verse, call the Show() on any agent in BeginPlay() or any other place, and then call Hide.
It won’t Hide the HUD.

Expected Result

It hides the HUD correctly for everyone in the match.

Observed Result

It doesn’t hide the HUD for anyone in the match.

Platform(s)

Win64

Can confirm this is also happening for me, having to use a trigger to clear the layer instead of hiding the message.

1 Like

I also have this issue still. Is there a solution for it?

Maybe you could try showing an empty string message to all users (not user specific) to clear it (then hide, if needed)

Something like

HudMessageDevice.Show(StringToMessage(""), ?DisplayTime := 0.01)
HudMessageDevice.Hide();

Or itterate through all players and Show() an empty string message, maybe?

3 Likes

This worked for me. Thanks!

1 Like