# Set Boss Bar Maximum Value

Grammar — Set boss bar bossBarID maximum value to max (refresh|Do/Do Not refresh the boss bar)
FlagsAction

Sets the maximum value for the specified boss bar. Calling this action will overwrite the boss unit you set through “Set Boss Bar Boss”, and will instead rely on the values sent to it through “Set Boss Bar Maximum Value” and “Set Boss Bar Current Value”.

# Arguments

Returns — void

void libNtve_gf_SetBossBarMaximumValue(
	int lp_bossBarID,
	int lp_max,
	bool lp_refresh,
);

Category: UI / Boss Bar

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L1209
libNtve_gf_SetBossBarMaximumValue(gv_purifierBossBar, FixedToInt(UnitGetPropertyFixed(gv_purifier, c_unitPropLifeMax, c_unitPropCurrent)), true)
// L1269
libNtve_gf_SetBossBarMaximumValue(gv_odinBossBar, FixedToInt(gv_odinCurrentHealth), true)
// L1818
libNtve_gf_SetBossBarMaximumValue(gv_templeDoorBossBar, FixedToInt(UnitGetPropertyFixed(gv_tHEONEDRILL, c_unitPropLife, c_unitPropNormal)), true)
// L7291
libNtve_gf_SetBossBarMaximumValue(gv__3QueenBossBarIndex, FixedToInt(UnitGetPropertyFixed(gv_tHEONEBROODMOTHER, c_unitPropLifeMax, c_unitPropCurrent)), true)
// L1209
libNtve_gf_SetBossBarMaximumValue(gv_purifierBossBar, FixedToInt(UnitGetPropertyFixed(gv_purifier, c_unitPropLifeMax, c_unitPropCurrent)), true)
// L1269
libNtve_gf_SetBossBarMaximumValue(gv_odinBossBar, FixedToInt(gv_odinCurrentHealth), true)
// L1818
libNtve_gf_SetBossBarMaximumValue(gv_templeDoorBossBar, FixedToInt(UnitGetPropertyFixed(gv_tHEONEDRILL, c_unitPropLife, c_unitPropNormal)), true)
// L7291
libNtve_gf_SetBossBarMaximumValue(gv__3QueenBossBarIndex, FixedToInt(UnitGetPropertyFixed(gv_tHEONEBROODMOTHER, c_unitPropLifeMax, c_unitPropCurrent)), true)

# mods/core.sc2mod

NativeLib.galaxy

// L4785
libNtve_gf_SetBossBarMaximumValue(lp_bossBarID, lp_max, false)
// L4030
libNtve_gf_SetBossBarMaximumValue(lp_bossBarID, lp_max, false)