Quantcast
Channel: General - Epic Developer Community Forums
Viewing all articles
Browse latest Browse all 9618

Error in the widget

$
0
0

hello, did you know when my getscores is between 20 and 40 the ui not removed ?

    CheckForCountHUD(Agent:agent):void=
        Print("CheckForCount 1")
        if(PlayerObj := player[Agent]):
            Print("CheckForCount 2")
            if(AgentStats := AllPlayersMap[PlayerObj]):

                Bronze1 := AgentStats.HUDBronzeI()
                Bronze2 := AgentStats.HUDBronzeII()

                Print("CheckForCount 3")
                GetScores := score_to_kill.GetCurrentScore(PlayerObj)
                Print("CheckForCount 4")
                if(PlayerUI:= GetPlayerUI[PlayerObj]):
                    if(0 <= GetScores <= 20):
                        Print("0")
                        Widgets := PlayerUI.AddWidget(Bronze1)
                    else if(20 <= GetScores <= 40):
                        Print("20")
                        Widgets := PlayerUI.RemoveWidget(Bronze1)

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 9618

Trending Articles