# Set Boss Bar Race

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

Sets the race for the specified boss bar, which will change its appearance.

# Arguments

Returns — void

void libNtve_gf_SetBossBarRace(
	int lp_bossBarID,
	int lp_race,
	bool lp_refresh,
);

Category: UI / Boss Bar

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:1208

    libNtve_gf_DisplayBossBar(1, "Assets\\Textures\\btn-unit-protoss-mothership.dds", StringExternal("Param/Value/8B755AF6"), FixedToInt(UnitGetPropertyFixed(gv_purifier, c_unitPropLifeMax, c_unitPropCurrent)), PlayerGroupAll());
    gv_purifierBossBar = 1;
    libNtve_gf_SetBossBarRace(gv_purifierBossBar, libNtve_ge_BossBarRace_Protoss, true);
    libNtve_gf_SetBossBarMaximumValue(gv_purifierBossBar, FixedToInt(UnitGetPropertyFixed(gv_purifier, c_unitPropLifeMax, c_unitPropCurrent)), true);
    libNtve_gf_SetBossBarCurrentValue(gv_purifierBossBar, FixedToInt(UnitGetPropertyFixed(gv_purifier, c_unitPropLife, c_unitPropCurrent)), true);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:2207


    libNtve_gf_DisplayBossBar(1, "Assets\\Textures\\btn-unit-terran-dominiontrain.dds", StringExternal("Param/Value/4BBDDE07"), 100, PlayerGroupAll());
    libNtve_gf_SetBossBarRace(1, libNtve_ge_BossBarRace_Terran, true);
    libNtve_gf_ShowHideBossBar(false, 1);
    while (true) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:1268

    libNtve_gf_DisplayBossBar(1, "Assets\\Textures\\btn-unit-terran-thor.dds", StringExternal("Param/Value/F6112D1D"), 100, PlayerGroupAll());
    gv_odinBossBar = 1;
    libNtve_gf_SetBossBarRace(gv_odinBossBar, libNtve_ge_BossBarRace_Terran, true);
    libNtve_gf_SetBossBarMaximumValue(gv_odinBossBar, FixedToInt(gv_odinCurrentHealth), true);
    libNtve_gf_SetBossBarCurrentValue(gv_odinBossBar, FixedToInt(UnitGetPropertyFixed(gv_odin, c_unitPropLife, c_unitPropCurrent)), true);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:1822

    libNtve_gf_SetBossBarBoss(gv_templeDoorBossBar, UnitFromId(125), true);
    libNtve_gf_MoveBossBar(gv_templeDoorBossBar, c_anchorTop, 0, 50);
    libNtve_gf_SetBossBarRace(gv_templeDoorBossBar, libNtve_ge_BossBarRace_Protoss, true);
    libNtve_gf_ShowHideBossBar(true, gv_templeDoorBossBar);
    return true;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:7293

    libNtve_gf_SetBossBarMaximumValue(gv__3QueenBossBarIndex, FixedToInt(UnitGetPropertyFixed(gv_tHEONEBROODMOTHER, c_unitPropLifeMax, c_unitPropCurrent)), true);
    libNtve_gf_SetBossBarCurrentValue(gv__3QueenBossBarIndex, FixedToInt(UnitGetPropertyFixed(gv_tHEONEBROODMOTHER, c_unitPropLife, c_unitPropCurrent)), true);
    libNtve_gf_SetBossBarRace(gv__3QueenBossBarIndex, libNtve_ge_BossBarRace_Zerg, true);
    libNtve_gf_MoveBossBar(gv__3QueenBossBarIndex, c_anchorTop, 0, 50);
    libNtve_gf_ShowHideBossBar(true, gv__3QueenBossBarIndex);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03a.sc2mapMapScript.galaxy:1208

    libNtve_gf_DisplayBossBar(1, "Assets\\Textures\\btn-unit-protoss-mothership.dds", StringExternal("Param/Value/8B755AF6"), FixedToInt(UnitGetPropertyFixed(gv_purifier, c_unitPropLifeMax, c_unitPropCurrent)), PlayerGroupAll());
    gv_purifierBossBar = 1;
    libNtve_gf_SetBossBarRace(gv_purifierBossBar, libNtve_ge_BossBarRace_Protoss, true);
    libNtve_gf_SetBossBarMaximumValue(gv_purifierBossBar, FixedToInt(UnitGetPropertyFixed(gv_purifier, c_unitPropLifeMax, c_unitPropCurrent)), true);
    libNtve_gf_SetBossBarCurrentValue(gv_purifierBossBar, FixedToInt(UnitGetPropertyFixed(gv_purifier, c_unitPropLife, c_unitPropCurrent)), true);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner01.sc2mapMapScript.galaxy:2207


    libNtve_gf_DisplayBossBar(1, "Assets\\Textures\\btn-unit-terran-dominiontrain.dds", StringExternal("Param/Value/4BBDDE07"), 100, PlayerGroupAll());
    libNtve_gf_SetBossBarRace(1, libNtve_ge_BossBarRace_Terran, true);
    libNtve_gf_ShowHideBossBar(false, 1);
    while (true) {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner03.sc2mapMapScript.galaxy:1268

    libNtve_gf_DisplayBossBar(1, "Assets\\Textures\\btn-unit-terran-thor.dds", StringExternal("Param/Value/F6112D1D"), 100, PlayerGroupAll());
    gv_odinBossBar = 1;
    libNtve_gf_SetBossBarRace(gv_odinBossBar, libNtve_ge_BossBarRace_Terran, true);
    libNtve_gf_SetBossBarMaximumValue(gv_odinBossBar, FixedToInt(gv_odinCurrentHealth), true);
    libNtve_gf_SetBossBarCurrentValue(gv_odinBossBar, FixedToInt(UnitGetPropertyFixed(gv_odin, c_unitPropLife, c_unitPropCurrent)), true);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus02.sc2mapMapScript.galaxy:1822

    libNtve_gf_SetBossBarBoss(gv_templeDoorBossBar, UnitFromId(125), true);
    libNtve_gf_MoveBossBar(gv_templeDoorBossBar, c_anchorTop, 0, 50);
    libNtve_gf_SetBossBarRace(gv_templeDoorBossBar, libNtve_ge_BossBarRace_Protoss, true);
    libNtve_gf_ShowHideBossBar(true, gv_templeDoorBossBar);
    return true;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2mapMapScript.galaxy:7293

    libNtve_gf_SetBossBarMaximumValue(gv__3QueenBossBarIndex, FixedToInt(UnitGetPropertyFixed(gv_tHEONEBROODMOTHER, c_unitPropLifeMax, c_unitPropCurrent)), true);
    libNtve_gf_SetBossBarCurrentValue(gv__3QueenBossBarIndex, FixedToInt(UnitGetPropertyFixed(gv_tHEONEBROODMOTHER, c_unitPropLife, c_unitPropCurrent)), true);
    libNtve_gf_SetBossBarRace(gv__3QueenBossBarIndex, libNtve_ge_BossBarRace_Zerg, true);
    libNtve_gf_MoveBossBar(gv__3QueenBossBarIndex, c_anchorTop, 0, 50);
    libNtve_gf_ShowHideBossBar(true, gv__3QueenBossBarIndex);

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:4826

    }

    libNtve_gf_SetBossBarRace(lp_bossBarID, libNtve_ge_BossBarRace_Terran, false);
    libNtve_gf_RefreshBossBar(lp_bossBarID);
    DialogSetVisible(libNtve_gv__BB_Dialog[lp_bossBarID], libNtve_gv__BB_Players[lp_bossBarID], true);

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:4071

    }

    libNtve_gf_SetBossBarRace(lp_bossBarID, libNtve_ge_BossBarRace_Terran, false);
    libNtve_gf_RefreshBossBar(lp_bossBarID);
    DialogSetVisible(libNtve_gv__BB_Dialog[lp_bossBarID], libNtve_gv__BB_Players[lp_bossBarID], true);