---@class WBP_BossHealth_C:UUserWidget ---@field HPProgressBar UProgressBar --Edit Below-- local WBP_BossHealth = { bInitDoOnce = false; }; --[==[ Construct function WBP_BossHealth:Construct() end -- Construct ]==] -- function WBP_BossHealth:Tick(MyGeometry, InDeltaTime) -- end -- function WBP_BossHealth:Destruct() -- end function WBP_BossHealth:UpdateOwnerHealth(CurHP, MaxHP) local NewPercentage = MaxHP > 0 and CurHP / MaxHP or 0.0 self.HPProgressBar:SetPercent(NewPercentage) if math.isNearlyEqual(NewPercentage, 0) then self:SetVisibility(ESlateVisibility.Collapsed) end end return WBP_BossHealth;