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.
I don’t even need to call Hide() or show an empty message with short duration etc., just calling Show(Agent) on another message that doesn’t have priority shows it immediately (as per ToolTip).
So to “clear” the previous message I just show an empty canvas instead.