Fortnite Creative Verse Script HUD Not Displaying Issue (HudDevice.Show() Not Working)

I am trying to display a HUD message in the Fortnite UEFN (Verse) script, but even when HudDevice.Show() is executed, the UI is not displayed on the screen.

The code is as follows: Problem with HUD not displaying in Fortnite Creative Verse script (HudDevice.Show() not working)

Print(‘hello’) is displayed, so it is definitely in the else block.
I would appreciate your advice.

Thank you in advance.

ButtonSpawn1A(Agent:agent): void=
    Print("hi")
    set WeightOfPoint1A = PlayerWeightOfThisPoint1A + CaptureWeightOfThisPoint1A 
    if(WeightOfPoint1A > 0.0):
        if(FortCharacter := Agent.GetFortCharacter[]):
            Print("hello")
            Transform := FortCharacter.GetTransform()
            Rotation := Transform.Rotation
            if(FortCharacter.TeleportTo[vector3{X:=11552.000000,Y:=-1558.000000,Z:=3206.000000},Rotation.ApplyYaw(0.0)]):
    else:
        Print("hello")
        HudDevice.Show()


Are you sure its printing the hello from the else block and not from inside the if?

1 Like

Sorry, there was a mistake in the code.

I was able to display it by putting the agent in the parentheses.

From now on, I will be careful not to duplicate code.

Thank you very much for your advice.

1 Like