# Set Boss Bar Current Value

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

Sets the current 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

  • int — BossBarID
  • int — Current
  • bool [ preset::Do_Do_Not_Option ] — Refresh

Returns — void

void libNtve_gf_SetBossBarCurrentValue(
	int lp_bossBarID,
	int lp_current,
	bool lp_refresh,
);

Category: UI / Boss Bar

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L1210
libNtve_gf_SetBossBarCurrentValue(gv_purifierBossBar, FixedToInt(UnitGetPropertyFixed(gv_purifier, c_unitPropLife, c_unitPropCurrent)), true)
// L1238
libNtve_gf_SetBossBarCurrentValue(gv_purifierBossBar, FixedToInt(UnitGetPropertyFixed(gv_purifier, c_unitPropLife, c_unitPropCurrent)), true)
// L1270
libNtve_gf_SetBossBarCurrentValue(gv_odinBossBar, FixedToInt(UnitGetPropertyFixed(gv_odin, c_unitPropLife, c_unitPropCurrent)), true)
// L1819
libNtve_gf_SetBossBarCurrentValue(gv_templeDoorBossBar, FixedToInt(UnitGetPropertyFixed(gv_tHEONEDOOR, c_unitPropLife, c_unitPropCurrent)), true)
// L7292
libNtve_gf_SetBossBarCurrentValue(gv__3QueenBossBarIndex, FixedToInt(UnitGetPropertyFixed(gv_tHEONEBROODMOTHER, c_unitPropLife, c_unitPropCurrent)), true)
// L7322
libNtve_gf_SetBossBarCurrentValue(gv__3QueenBossBarIndex, FixedToInt(UnitGetPropertyFixed(gv_tHEONEBROODMOTHER, c_unitPropLife, c_unitPropCurrent)), true)
// L1210
libNtve_gf_SetBossBarCurrentValue(gv_purifierBossBar, FixedToInt(UnitGetPropertyFixed(gv_purifier, c_unitPropLife, c_unitPropCurrent)), true)
// L1238
libNtve_gf_SetBossBarCurrentValue(gv_purifierBossBar, FixedToInt(UnitGetPropertyFixed(gv_purifier, c_unitPropLife, c_unitPropCurrent)), true)
// L1270
libNtve_gf_SetBossBarCurrentValue(gv_odinBossBar, FixedToInt(UnitGetPropertyFixed(gv_odin, c_unitPropLife, c_unitPropCurrent)), true)
// L1819
libNtve_gf_SetBossBarCurrentValue(gv_templeDoorBossBar, FixedToInt(UnitGetPropertyFixed(gv_tHEONEDOOR, c_unitPropLife, c_unitPropCurrent)), true)
// L7292
libNtve_gf_SetBossBarCurrentValue(gv__3QueenBossBarIndex, FixedToInt(UnitGetPropertyFixed(gv_tHEONEBROODMOTHER, c_unitPropLife, c_unitPropCurrent)), true)
// L7322
libNtve_gf_SetBossBarCurrentValue(gv__3QueenBossBarIndex, FixedToInt(UnitGetPropertyFixed(gv_tHEONEBROODMOTHER, c_unitPropLife, c_unitPropCurrent)), true)

# mods/core.sc2mod

NativeLib.galaxy

// L4786
libNtve_gf_SetBossBarCurrentValue(lp_bossBarID, lp_max, false)
// L4031
libNtve_gf_SetBossBarCurrentValue(lp_bossBarID, lp_max, false)