# Set Boss Bar Current Value
Grammar — Set boss bar bossBarID current value to current (refresh|Do/Do Not refresh the boss bar)
Flags —Action
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
— BossBarIDint
— Currentbool
[ preset::Do_Do_Not_Option ] — Refresh
Returns — void
void libNtve_gf_SetBossBarCurrentValue(
int lp_bossBarID,
int lp_current,
bool lp_refresh,
);
# Related
Category: UI / Boss Bar
- [F] —
void
— Display Boss Bar — ( libNtve_gf_DisplayBossBar ) - [F] —
void
— Set Boss Bar Maximum Value — ( libNtve_gf_SetBossBarMaximumValue ) - [F] —
void
— Set Boss Bar Current Value — ( libNtve_gf_SetBossBarCurrentValue ) - [F] —
void
— Set Boss Bar Boss — ( libNtve_gf_SetBossBarBoss ) - [P] — Boss Bar Race
- [F] —
void
— Set Boss Bar Race — ( libNtve_gf_SetBossBarRace ) - [F] —
void
— Move Boss Bar — ( libNtve_gf_MoveBossBar ) - [F] —
void
— Show/Hide Boss Bar — ( libNtve_gf_ShowHideBossBar ) - [F] —
void
— Refresh Boss Bar — ( libNtve_gf_RefreshBossBar )
# Examples
# campaigns/liberty.sc2campaign
// 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
// L4786
libNtve_gf_SetBossBarCurrentValue(lp_bossBarID, lp_max, false)
// L4031
libNtve_gf_SetBossBarCurrentValue(lp_bossBarID, lp_max, false)